Fix a minor bug handling constant exprs, introduced by a recent patch.

llvm-svn: 33175
This commit is contained in:
Chris Lattner 2007-01-13 00:42:58 +00:00
parent ae3b372318
commit ff7434a526
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ bool SCCPSolver::isEdgeFeasible(BasicBlock *From, BasicBlock *To) {
return true;
} else if (BCValue.isConstant()) {
// Not branching on an evaluatable constant?
if (BCValue.getConstant()->getType() != Type::Int1Ty) return true;
if (!isa<ConstantInt>(BCValue.getConstant())) return true;
// Constant condition variables mean the branch can only go a single way
return BI->getSuccessor(BCValue.getConstant() ==