[scudo] Simple coding style fix in mem_map_base.h (NFC)
authorChia-hung Duan <chiahungduan@google.com>
Mon, 10 Jul 2023 21:29:25 +0000 (21:29 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Mon, 10 Jul 2023 21:29:26 +0000 (21:29 +0000)
Reviewed By: cferris

Differential Revision: https://reviews.llvm.org/D154894

compiler-rt/lib/scudo/standalone/mem_map_base.h

index 8f06a52..99ab0cb 100644 (file)
@@ -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