summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-15 01:55:30 +0000
committerChris Lattner <sabre@nondot.org>2007-01-15 01:55:30 +0000
commit1942249c5b6c5897b5d365e2c168f16377fcf751 (patch)
tree438ebc618cf8f76d6ecc6df5700edcc46ea6c4a9 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parentc0f423a45202399b6ba0522d94b0c1fda359b17c (diff)
downloadbcm5719-llvm-1942249c5b6c5897b5d365e2c168f16377fcf751.tar.gz
bcm5719-llvm-1942249c5b6c5897b5d365e2c168f16377fcf751.zip
Eliminate calls to isInteger, generalizing code and tightening checks as needed.
llvm-svn: 33218
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 25bc16866f3..99eef52d1fa 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -1852,7 +1852,7 @@ bool llvm::SimplifyCFG(BasicBlock *BB) {
Value *CompVal = 0;
std::vector<ConstantInt*> Values;
bool TrueWhenEqual = GatherValueComparisons(Cond, CompVal, Values);
- if (CompVal && CompVal->getType()->isInteger()) {
+ if (CompVal && CompVal->getType()->isIntegral()) {
// There might be duplicate constants in the list, which the switch
// instruction can't handle, remove them now.
std::sort(Values.begin(), Values.end(), ConstantIntOrdering());
OpenPOWER on IntegriCloud