diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-12 18:28:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-12 18:28:58 +0000 |
commit | 19cfb04d04e4050edf4daf1a2c1b1540026eee7c (patch) | |
tree | 7c48207fb08d4df388e20c5b6c27532f2b41b645 /llvm/lib/Analysis/ScalarEvolution.cpp | |
parent | 3b641bfba575aeef6d236af38405c38f5e220893 (diff) | |
download | bcm5719-llvm-19cfb04d04e4050edf4daf1a2c1b1540026eee7c.tar.gz bcm5719-llvm-19cfb04d04e4050edf4daf1a2c1b1540026eee7c.zip |
don't discriminate against bool
llvm-svn: 33128
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 27c9e622ca8..20a979a2e57 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -1930,7 +1930,7 @@ ComputeIterationCountExhaustively(const Loop *L, Value *Cond, bool ExitWhen) { dyn_cast_or_null<ConstantInt>(EvaluateExpression(Cond, PHIVal)); // Couldn't symbolically evaluate. - if (!CondVal || CondVal->getType() != Type::Int1Ty) return UnknownValue; + if (!CondVal) return UnknownValue; if (CondVal->getZExtValue() == ExitWhen) { ConstantEvolutionLoopExitValue[PN] = PHIVal; |