[llvm] [MemProf] Avoid assertion checking loop under NDEBUG (NFC) (PR #138985)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed May 7 20:37:43 PDT 2025


================
@@ -5050,6 +5050,45 @@ bool MemProfContextDisambiguation::initializeIndirectCallPromotionInfo(
   return true;
 }
 
+#ifndef NDEBUG
----------------
teresajohnson wrote:

I could, but then I need to put that attribute back on the StackIdIndexIter def in this code that I had removed it from. My sense is that the `#ifdef` is simpler overall, wdyt?

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


More information about the llvm-commits mailing list