diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-13 00:42:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-13 00:42:58 +0000 |
commit | 54a525d7ae4ce36780d840cfec075d4080f0764a (patch) | |
tree | 3dfe33bb5f8982d81c85fc96a8dfaf0317390384 /lib/Transforms/Scalar/SCCP.cpp | |
parent | 7cfdd0be5aadb8e074cdffe085025561f14b5880 (diff) |
Fix a minor bug handling constant exprs, introduced by a recent patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r-- | lib/Transforms/Scalar/SCCP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index 1ebc1cf4a9..5d05ef86c3 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -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() == |