mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
Silencing a -Wunused-but-set-variable warning; NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235094 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05da50f87b
commit
ceb5df1992
@ -1006,7 +1006,6 @@ bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
|
|||||||
if (LdStHasDebugValue(DIVar, SI))
|
if (LdStHasDebugValue(DIVar, SI))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
Instruction *DbgVal = nullptr;
|
|
||||||
// If an argument is zero extended then use argument directly. The ZExt
|
// If an argument is zero extended then use argument directly. The ZExt
|
||||||
// may be zapped by an optimization pass in future.
|
// may be zapped by an optimization pass in future.
|
||||||
Argument *ExtendedArg = nullptr;
|
Argument *ExtendedArg = nullptr;
|
||||||
@ -1015,11 +1014,11 @@ bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
|
|||||||
if (SExtInst *SExt = dyn_cast<SExtInst>(SI->getOperand(0)))
|
if (SExtInst *SExt = dyn_cast<SExtInst>(SI->getOperand(0)))
|
||||||
ExtendedArg = dyn_cast<Argument>(SExt->getOperand(0));
|
ExtendedArg = dyn_cast<Argument>(SExt->getOperand(0));
|
||||||
if (ExtendedArg)
|
if (ExtendedArg)
|
||||||
DbgVal = Builder.insertDbgValueIntrinsic(ExtendedArg, 0, DIVar, DIExpr,
|
Builder.insertDbgValueIntrinsic(ExtendedArg, 0, DIVar, DIExpr,
|
||||||
DDI->getDebugLoc(), SI);
|
DDI->getDebugLoc(), SI);
|
||||||
else
|
else
|
||||||
DbgVal = Builder.insertDbgValueIntrinsic(SI->getOperand(0), 0, DIVar,
|
Builder.insertDbgValueIntrinsic(SI->getOperand(0), 0, DIVar, DIExpr,
|
||||||
DIExpr, DDI->getDebugLoc(), SI);
|
DDI->getDebugLoc(), SI);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user