diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2021-07-13 16:44:42 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2021-07-13 16:44:42 +0000 |
commit | 2c47b8847ec75c25187e9819abd85cc9e908d742 (patch) | |
tree | 1c61ba500618200458e83cae108a853addfaf76f /llvm/unittests/IR/ConstantRangeTest.cpp | |
parent | ab5693aa4ac45fed0fa4c9106f0eef6d409b6c3e (diff) | |
download | llvm-2c47b8847ec75c25187e9819abd85cc9e908d742.zip llvm-2c47b8847ec75c25187e9819abd85cc9e908d742.tar.gz llvm-2c47b8847ec75c25187e9819abd85cc9e908d742.tar.bz2 |
Revert "[llvm] Add enum iteration to Sequence"
This reverts commit a006af5d6ec6280034ae4249f6d2266d726ccef4.
Diffstat (limited to 'llvm/unittests/IR/ConstantRangeTest.cpp')
-rw-r--r-- | llvm/unittests/IR/ConstantRangeTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/IR/ConstantRangeTest.cpp b/llvm/unittests/IR/ConstantRangeTest.cpp index 8eca261..f8816e4 100644 --- a/llvm/unittests/IR/ConstantRangeTest.cpp +++ b/llvm/unittests/IR/ConstantRangeTest.cpp @@ -1551,9 +1551,9 @@ void ICmpTestImpl(CmpInst::Predicate Pred) { } TEST(ConstantRange, ICmp) { - for (auto Pred : seq_inclusive(CmpInst::Predicate::FIRST_ICMP_PREDICATE, - CmpInst::Predicate::LAST_ICMP_PREDICATE)) - ICmpTestImpl(Pred); + for (auto Pred : seq<unsigned>(CmpInst::Predicate::FIRST_ICMP_PREDICATE, + 1 + CmpInst::Predicate::LAST_ICMP_PREDICATE)) + ICmpTestImpl((CmpInst::Predicate)Pred); } TEST(ConstantRange, MakeGuaranteedNoWrapRegion) { |