diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-02 02:48:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-02 02:48:17 +0000 |
commit | 301a2792bea39a59be47d8950a0c5c8f998199c1 (patch) | |
tree | 8d6f5c31a9a94fb83a8ab6a4c0169f5afbaa8b16 /lib/Transforms | |
parent | cc4f60b1134c745139367d529d37d316d2c59e99 (diff) |
fix failures introduced in r85774
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/SCCP.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index 7421d4f349..e931c37989 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -451,7 +451,8 @@ void SCCPSolver::getFeasibleSuccessors(TerminatorInst &TI, } // Constant condition variables mean the branch can only go a single way. - Succs[cast<ConstantInt>(BCValue.getConstant())->isZero()] = true; + if (BCValue.isConstant()) + Succs[cast<ConstantInt>(BCValue.getConstant())->isZero()] = true; return; } |