[llvm] r235094 - Silencing a -Wunused-but-set-variable warning; NFC.
Aaron Ballman
aaron at aaronballman.com
Thu Apr 16 06:29:36 PDT 2015
Author: aaronballman
Date: Thu Apr 16 08:29:36 2015
New Revision: 235094
URL: http://llvm.org/viewvc/llvm-project?rev=235094&view=rev
Log:
Silencing a -Wunused-but-set-variable warning; NFC.
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=235094&r1=235093&r2=235094&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Thu Apr 16 08:29:36 2015
@@ -1006,7 +1006,6 @@ bool llvm::ConvertDebugDeclareToDebugVal
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::ConvertDebugDeclareToDebugVal
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;
}
More information about the llvm-commits
mailing list