[clang] Reapply "[Clang] Improve diagnostics for expansion length mismatch" (PR #121044)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 07:17:32 PDT 2025


================
@@ -38,7 +38,7 @@ class CollectUnexpandedParameterPacksVisitor
   unsigned DepthLimit = (unsigned)-1;
 
 #ifndef NDEBUG
-    bool ContainsIntermediatePacks = false;
+  bool ContainsIntermediatePacks = false;
----------------
cor3ntin wrote:

We gain nothing by hiding that behind NDEBUG; we can afford a boolean on the stack

https://github.com/llvm/llvm-project/pull/121044


More information about the cfe-commits mailing list