[llvm] [MemProf] Avoid assertion checking loop under NDEBUG (NFC) (PR #138985)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed May 7 20:18:23 PDT 2025
================
@@ -5050,6 +5050,45 @@ bool MemProfContextDisambiguation::initializeIndirectCallPromotionInfo(
return true;
}
+#ifndef NDEBUG
----------------
snehasish wrote:
I think we can drop the ifndef around the function definition in favour of a LLVM_ATTRIBUTE_UNUSED function attribute?
https://github.com/llvm/llvm-project/pull/138985
More information about the llvm-commits
mailing list