RetOp is not actually used for anything useful (though
authorDuncan Sands <baldrick@free.fr>
Thu, 21 Oct 2010 16:05:44 +0000 (16:05 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 21 Oct 2010 16:05:44 +0000 (16:05 +0000)
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

lib/Transforms/IPO/MergeFunctions.cpp

index 3a35739a84d4c64d986199356dc96be2e3c7cfbf..9cfbcc8dae9d908800674ee22b7ed66c628a2110 100644 (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)