mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
UserspaceEmulator: Remove hand-rolled is_foo() helpers in favor of RTTI
This commit is contained in:
parent
db790dda62
commit
febc8a5ac7
7 changed files with 13 additions and 17 deletions
|
@ -95,7 +95,7 @@ private:
|
|||
|
||||
ALWAYS_INLINE Mallocation* MallocTracer::find_mallocation(const Region& region, FlatPtr address)
|
||||
{
|
||||
if (!region.is_mmap())
|
||||
if (!is<MmapRegion>(region))
|
||||
return nullptr;
|
||||
if (!static_cast<const MmapRegion&>(region).is_malloc_block())
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue