Changes in directory llvm/lib/Transforms/Utils:
SimplifyCFG.cpp updated: 1.111 -> 1.112 --- Log message: Eliminate calls to isInteger, generalizing code and tightening checks as needed. --- Diffs of the changes: (+1 -1) SimplifyCFG.cpp | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.111 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.112 --- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.111 Thu Jan 11 22:24:46 2007 +++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp Sun Jan 14 19:55:30 2007 @@ -1852,7 +1852,7 @@ 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()); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits