diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-17 10:48:14 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-17 10:48:14 +0000 |
commit | e5f49c4ff2578e57c2653f19e337b21a858fae7a (patch) | |
tree | 87e5b5b1461d12c2389f3d68b534d10adc3d5194 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | a29e1bf8ad2b8e4ea2067ec6fbf26c3c84238601 (diff) | |
download | llvm-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.cpp | 2 |
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; |