diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-25 11:24:23 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-25 11:24:23 -0700 |
commit | d152e50c15416c61220f218039c70f0c814e5651 (patch) | |
tree | f45bf26a724c6b5d4878de5d47674302bb237ca4 /llvm/unittests/IR/ConstantRangeTest.cpp | |
parent | ab736a2750a99b303f8d6a216f754fb3577abb88 (diff) | |
download | llvm-d152e50c15416c61220f218039c70f0c814e5651.zip llvm-d152e50c15416c61220f218039c70f0c814e5651.tar.gz llvm-d152e50c15416c61220f218039c70f0c814e5651.tar.bz2 |
[llvm] Don't use Optional::{hasValue,getValue} (NFC)
Diffstat (limited to 'llvm/unittests/IR/ConstantRangeTest.cpp')
-rw-r--r-- | llvm/unittests/IR/ConstantRangeTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/ConstantRangeTest.cpp b/llvm/unittests/IR/ConstantRangeTest.cpp index 8a543b1..ced38a2 100644 --- a/llvm/unittests/IR/ConstantRangeTest.cpp +++ b/llvm/unittests/IR/ConstantRangeTest.cpp @@ -588,7 +588,7 @@ void testBinarySetOperationExhaustive(Fn1 OpFn, Fn2 ExactOpFn, Fn3 InResultFn) { Optional<ConstantRange> ExactCR = ExactOpFn(CR1, CR2); if (SmallestCR.isSizeLargerThan(Elems.count())) { - EXPECT_TRUE(!ExactCR.hasValue()); + EXPECT_TRUE(!ExactCR); } else { EXPECT_EQ(SmallestCR, *ExactCR); } |