[compiler-rt] aae5b3f - [scudo] Fix GCC build after 212604 (#212904)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 12:52:14 PDT 2026


Author: Michael Jones
Date: 2026-07-30T12:52:08-07:00
New Revision: aae5b3f2a92cc1c08a4bd65ba397fba5e37272fe

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

LOG: [scudo] Fix GCC build after 212604 (#212904)

Change #212604 introduced an issue when building with gcc where it
complains there are "too few template-parameter-lists" (see log:

https://lab.llvm.org/buildbot/#/builders/131/builds/51269/steps/6/logs/stdio
)
This PR fixes the build.

Assisted-by: Automated tooling, human reviewed.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/scudo/standalone/primary64.h b/compiler-rt/lib/scudo/standalone/primary64.h
index 1047cd02db235..d5dde33d672dc 100644
--- a/compiler-rt/lib/scudo/standalone/primary64.h
+++ b/compiler-rt/lib/scudo/standalone/primary64.h
@@ -194,7 +194,7 @@ template <typename Config> class SizeClassAllocator64 {
   };
   static_assert(sizeof(RegionInfo) % SCUDO_CACHE_LINE_SIZE == 0, "");
 
-  template <bool ConditionVariableEnabled = false>
+  template <bool ConditionVariableEnabled = false, typename Dummy = void>
   class SCOPED_CAPABILITY ScopedFLLockBase {
   public:
     ScopedFLLockBase(HybridMutex &M, UNUSED RegionInfo *Region) ACQUIRE(M)
@@ -210,7 +210,8 @@ template <typename Config> class SizeClassAllocator64 {
     void operator=(const ScopedFLLockBase &) = delete;
   };
 
-  template <> class SCOPED_CAPABILITY ScopedFLLockBase<true> {
+  template <typename Dummy>
+  class SCOPED_CAPABILITY ScopedFLLockBase<true, Dummy> {
   public:
     ScopedFLLockBase(HybridMutex &M, RegionInfo *Region) ACQUIRE(M)
         : Mutex(M), Region(Region) {


        


More information about the llvm-commits mailing list