mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 23:19:37 +00:00
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:
parent
9bc20ca728
commit
2b55f56df8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user