diff options
author | Chia-hung Duan <chiahungduan@google.com> | 2023-07-10 21:29:25 +0000 |
---|---|---|
committer | Chia-hung Duan <chiahungduan@google.com> | 2023-07-10 21:29:26 +0000 |
commit | 280ffafca56f4bf8544281b114c144cf6bd7432f (patch) | |
tree | 3f4701a0268ba6302a438f2596ec2d8eca2e43b2 /compiler-rt | |
parent | 316ca42a65ce0078ba3380f135ced8f36859dfa5 (diff) | |
download | llvm-280ffafca56f4bf8544281b114c144cf6bd7432f.zip llvm-280ffafca56f4bf8544281b114c144cf6bd7432f.tar.gz llvm-280ffafca56f4bf8544281b114c144cf6bd7432f.tar.bz2 |
[scudo] Simple coding style fix in mem_map_base.h (NFC)
Reviewed By: cferris
Differential Revision: https://reviews.llvm.org/D154894
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/scudo/standalone/mem_map_base.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/scudo/standalone/mem_map_base.h b/compiler-rt/lib/scudo/standalone/mem_map_base.h index 8f06a52..99ab0cb 100644 --- a/compiler-rt/lib/scudo/standalone/mem_map_base.h +++ b/compiler-rt/lib/scudo/standalone/mem_map_base.h @@ -50,8 +50,7 @@ public: 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 |