[llvm] 1a08887 - Suppressed unused-var warning from c672ba7dde
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 26 14:05:51 PST 2023
Author: Jeremy Morse
Date: 2023-11-26T22:03:27Z
New Revision: 1a08887784484f7ea49c66c188c73527e7764648
URL: https://github.com/llvm/llvm-project/commit/1a08887784484f7ea49c66c188c73527e7764648
DIFF: https://github.com/llvm/llvm-project/commit/1a08887784484f7ea49c66c188c73527e7764648.diff
LOG: Suppressed unused-var warning from c672ba7dde
Added:
Modified:
llvm/lib/Transforms/Utils/CloneFunction.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index abf0ab4e9b202ac..c0f333364fa5870 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -989,7 +989,6 @@ void llvm::remapInstructionsInBlocks(ArrayRef<BasicBlock *> Blocks,
ValueToValueMapTy &VMap) {
// Rewrite the code to refer to itself.
for (auto *BB : Blocks) {
- Module *M = BB->getModule();
for (auto &Inst : *BB) {
RemapDPValueRange(Inst.getModule(), Inst.getDbgValueRange(), VMap,
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);
More information about the llvm-commits
mailing list