aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2023-11-26 22:03:27 +0000
committerJeremy Morse <jeremy.morse@sony.com>2023-11-26 22:03:27 +0000
commit1a08887784484f7ea49c66c188c73527e7764648 (patch)
treec1357e3e2fc3b4a4ad945a84330c4fa98b27da88 /llvm/lib/Transforms/Utils/CloneFunction.cpp
parentacdd3cc1785f5f002dbde48ccd9140578e5b59c9 (diff)
downloadllvm-1a08887784484f7ea49c66c188c73527e7764648.zip
llvm-1a08887784484f7ea49c66c188c73527e7764648.tar.gz
llvm-1a08887784484f7ea49c66c188c73527e7764648.tar.bz2
Suppressed unused-var warning from c672ba7dde
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index abf0ab4..c0f3333 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);