diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-15 01:55:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-15 01:55:30 +0000 |
commit | 4d5f508318b2f666ed50a2ed5e49e4aa343a92d6 (patch) | |
tree | ad75d1f1e795fc98c23d34481461d53e17961960 /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 3b19d65897db69f1ce2f91bcd581ab76d1c880cf (diff) |
Eliminate calls to isInteger, generalizing code and tightening checks as needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 25bc16866f..99eef52d1f 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/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()); |