fix failures introduced in r85774

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85777 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-11-02 02:48:17 +00:00
parent cc4f60b113
commit 301a2792be

View File

@ -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;
}