[compiler-rt] d0eeb0f - [scudo] Fix definition of canCache() function

Dominic Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 29 14:26:27 PDT 2022


Author: Dominic Chen
Date: 2022-03-29T14:26:15-07:00
New Revision: d0eeb0fba09f2eeebb2d71f70c8b491dc3c4f316

URL: https://github.com/llvm/llvm-project/commit/d0eeb0fba09f2eeebb2d71f70c8b491dc3c4f316
DIFF: https://github.com/llvm/llvm-project/commit/d0eeb0fba09f2eeebb2d71f70c8b491dc3c4f316.diff

LOG: [scudo] Fix definition of canCache() function

The called member function has boolean type, change this function to match

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

Added: 
    

Modified: 
    compiler-rt/lib/scudo/standalone/secondary.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/scudo/standalone/secondary.h b/compiler-rt/lib/scudo/standalone/secondary.h
index 53707d78eb5c9..2d17757625886 100644
--- a/compiler-rt/lib/scudo/standalone/secondary.h
+++ b/compiler-rt/lib/scudo/standalone/secondary.h
@@ -459,7 +459,7 @@ template <typename Config> class MapAllocator {
     }
   }
 
-  uptr canCache(uptr Size) { return Cache.canCache(Size); }
+  bool canCache(uptr Size) { return Cache.canCache(Size); }
 
   bool setOption(Option O, sptr Value) { return Cache.setOption(O, Value); }
 


        


More information about the llvm-commits mailing list