diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2015-04-16 13:29:36 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2015-04-16 13:29:36 +0000 |
commit | a2f9943cf6e38be92e5a13535066122ff0012e51 (patch) | |
tree | b02c2ed4930188f109ab01fe1accc74ae13a9447 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 4de91c34629193e63aef1d12ad2473a2bb41d09d (diff) | |
download | llvm-a2f9943cf6e38be92e5a13535066122ff0012e51.zip llvm-a2f9943cf6e38be92e5a13535066122ff0012e51.tar.gz llvm-a2f9943cf6e38be92e5a13535066122ff0012e51.tar.bz2 |
Silencing a -Wunused-but-set-variable warning; NFC.
llvm-svn: 235094
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 51a3fc6..1c9760e 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1006,7 +1006,6 @@ bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI, if (LdStHasDebugValue(DIVar, SI)) return true; - Instruction *DbgVal = nullptr; // If an argument is zero extended then use argument directly. The ZExt // may be zapped by an optimization pass in future. Argument *ExtendedArg = nullptr; @@ -1015,11 +1014,11 @@ bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI, if (SExtInst *SExt = dyn_cast<SExtInst>(SI->getOperand(0))) ExtendedArg = dyn_cast<Argument>(SExt->getOperand(0)); if (ExtendedArg) - DbgVal = Builder.insertDbgValueIntrinsic(ExtendedArg, 0, DIVar, DIExpr, - DDI->getDebugLoc(), SI); + Builder.insertDbgValueIntrinsic(ExtendedArg, 0, DIVar, DIExpr, + DDI->getDebugLoc(), SI); else - DbgVal = Builder.insertDbgValueIntrinsic(SI->getOperand(0), 0, DIVar, - DIExpr, DDI->getDebugLoc(), SI); + Builder.insertDbgValueIntrinsic(SI->getOperand(0), 0, DIVar, DIExpr, + DDI->getDebugLoc(), SI); return true; } |