diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-01 01:27:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-01 01:27:45 +0000 |
commit | cdfc940912d56a63b6f12eaa7f3faf79cf74c693 (patch) | |
tree | d726a0bce552dab388c526c707aa0b88455241e5 /lib/Transforms/IPO/GlobalOpt.cpp | |
parent | de17fb6e4dd8f169f707d58d4e124c8d4d2c7dba (diff) |
Revert 85678/85680. The decision is to stay with the current form of
indirectbr, thus we don't need "blockaddr(@func, null)". Eliminate it
for simplicity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/GlobalOpt.cpp')
-rw-r--r-- | lib/Transforms/IPO/GlobalOpt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index 94951002b4..49e9683a55 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp @@ -2345,7 +2345,8 @@ static bool EvaluateFunction(Function *F, Constant *&RetVal, Value *Val = getVal(Values, IBI->getAddress())->stripPointerCasts(); if (BlockAddress *BA = dyn_cast<BlockAddress>(Val)) NewBB = BA->getBasicBlock(); - if (NewBB == 0) return false; // Cannot determine. + else + return false; // Cannot determine. } else if (ReturnInst *RI = dyn_cast<ReturnInst>(CurInst)) { if (RI->getNumOperands()) RetVal = getVal(Values, RI->getOperand(0)); |