Skip to content

Commit

Permalink
[scudo] Simple coding style fix in mem_map_base.h (NFC)
Browse files Browse the repository at this point in the history
Reviewed By: cferris

Differential Revision: https://reviews.llvm.org/D154894
  • Loading branch information
ChiaHungDuan committed Jul 10, 2023
1 parent 316ca42 commit 280ffaf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler-rt/lib/scudo/standalone/mem_map_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ template <class Derived> class MemMapBase {
void setMemoryPermission(uptr Addr, uptr Size, uptr Flags) {
DCHECK(isAllocated());
DCHECK((Addr >= getBase()) && (Addr + Size <= getBase() + getCapacity()));
return static_cast<Derived *>(this)->setMemoryPermissionImpl(Addr, Size,
Flags);
return invokeImpl(&Derived::setMemoryPermissionImpl, Addr, Size, Flags);
}

// Suggest releasing a set of contiguous physical pages back to the OS. Note
Expand Down

0 comments on commit 280ffaf

Please sign in to comment.