aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-12-17 10:48:14 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-12-17 10:48:14 +0000
commite5f49c4ff2578e57c2653f19e337b21a858fae7a (patch)
tree87e5b5b1461d12c2389f3d68b534d10adc3d5194 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parenta29e1bf8ad2b8e4ea2067ec6fbf26c3c84238601 (diff)
downloadllvm-e5f49c4ff2578e57c2653f19e337b21a858fae7a.zip
llvm-e5f49c4ff2578e57c2653f19e337b21a858fae7a.tar.gz
llvm-e5f49c4ff2578e57c2653f19e337b21a858fae7a.tar.bz2
SimplifyCFG: Ranges can be larger than 64 bits. Fixes Release-selfhost build.
llvm-svn: 122054
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 9bb61b6..1eb8e8e 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -324,7 +324,7 @@ GatherConstantCompares(Value *V, std::vector<ConstantInt*> &Vals, Value *&Extra,
Span = Span.inverse();
// If there are a ton of values, we don't want to make a ginormous switch.
- if (Span.getSetSize().getZExtValue() > 8 || Span.isEmptySet() ||
+ if (Span.getSetSize().ugt(8) || Span.isEmptySet() ||
// We don't handle wrapped sets yet.
Span.isWrappedSet())
return 0;