RetOp is not actually used for anything useful (though

it looks like maybe it was supposed to be used in the
test...), so zap it (gcc-4.6 warning).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2010-10-21 16:05:44 +00:00
parent 9bc20ca728
commit 2b55f56df8

View File

@ -721,11 +721,9 @@ static bool IsThunk(const Function *F) {
// Verify that the terminator is a ret void (if we're void) or a ret of the
// call's return, or a ret of a bitcast of the call's return.
const Value *RetOp = CI;
if (const BitCastInst *BCI = dyn_cast<BitCastInst>(I)) {
++I;
if (BCI->getOperand(0) != CI) return false;
RetOp = BCI;
}
if (RI != I) return false;
if (RI->getNumOperands() == 0)