[llvm] 1428624 - Follow up to 9eb0020555, squelch unused variable warning
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 17 08:24:26 PDT 2025
Author: Jeremy Morse
Date: 2025-06-17T16:24:12+01:00
New Revision: 14286244f1dca9300ead8bf83f049df2ffa97180
URL: https://github.com/llvm/llvm-project/commit/14286244f1dca9300ead8bf83f049df2ffa97180
DIFF: https://github.com/llvm/llvm-project/commit/14286244f1dca9300ead8bf83f049df2ffa97180.diff
LOG: Follow up to 9eb0020555, squelch unused variable warning
It turns out that this now-deleted debug-intrinsic code was the only use of
CI.
Added:
Modified:
llvm/lib/Transforms/IPO/IROutliner.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/IROutliner.cpp b/llvm/lib/Transforms/IPO/IROutliner.cpp
index 2c17863266a97..8d6ff72fa6061 100644
--- a/llvm/lib/Transforms/IPO/IROutliner.cpp
+++ b/llvm/lib/Transforms/IPO/IROutliner.cpp
@@ -744,9 +744,6 @@ static void moveFunctionData(Function &Old, Function &New,
continue;
}
- // From this point we are only handling call instructions.
- CallInst *CI = cast<CallInst>(&Val);
-
// Edit the scope of called functions inside of outlined functions.
if (DISubprogram *SP = New.getSubprogram()) {
DILocation *DI = DILocation::get(New.getContext(), 0, 0, SP);
More information about the llvm-commits
mailing list