From 2b55f56df8a69dd2fc057626e314cdf29d7c10ed Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Thu, 21 Oct 2010 16:05:44 +0000 Subject: [PATCH] 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 --- lib/Transforms/IPO/MergeFunctions.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp index 3a35739a84d..9cfbcc8dae9 100644 --- a/lib/Transforms/IPO/MergeFunctions.cpp +++ b/lib/Transforms/IPO/MergeFunctions.cpp @@ -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(I)) { ++I; if (BCI->getOperand(0) != CI) return false; - RetOp = BCI; } if (RI != I) return false; if (RI->getNumOperands() == 0) -- 2.34.1