[llvm] c6c124c - Fixed unused variable warning.
Mikhail Goncharov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 28 02:44:38 PDT 2022
Author: Mikhail Goncharov
Date: 2022-06-28T11:44:16+02:00
New Revision: c6c124ca80941b4715ffb883420df0c2271687fb
URL: https://github.com/llvm/llvm-project/commit/c6c124ca80941b4715ffb883420df0c2271687fb
DIFF: https://github.com/llvm/llvm-project/commit/c6c124ca80941b4715ffb883420df0c2271687fb.diff
LOG: Fixed unused variable warning.
Added:
Modified:
llvm/lib/Transforms/IPO/SampleContextTracker.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/SampleContextTracker.cpp b/llvm/lib/Transforms/IPO/SampleContextTracker.cpp
index 52cdaa9f5ca0a..6859953de962e 100644
--- a/llvm/lib/Transforms/IPO/SampleContextTracker.cpp
+++ b/llvm/lib/Transforms/IPO/SampleContextTracker.cpp
@@ -415,6 +415,8 @@ ContextTrieNode &SampleContextTracker::promoteMergeContextSamplesTree(
// the context profile in the base (context-less) profile.
FunctionSamples *FromSamples = NodeToPromo.getFunctionSamples();
assert(FromSamples && "Shouldn't promote a context without profile");
+ (void)FromSamples; // Unused in release build.
+
LLVM_DEBUG(dbgs() << " Found context tree root to promote: "
<< getContextString(&NodeToPromo) << "\n");
More information about the llvm-commits
mailing list