aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/TableGen/ParserEntryPointTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/TableGen/ParserEntryPointTest.cpp')
-rw-r--r--llvm/unittests/TableGen/ParserEntryPointTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/TableGen/ParserEntryPointTest.cpp b/llvm/unittests/TableGen/ParserEntryPointTest.cpp
index 23642b6..a227f3d 100644
--- a/llvm/unittests/TableGen/ParserEntryPointTest.cpp
+++ b/llvm/unittests/TableGen/ParserEntryPointTest.cpp
@@ -35,6 +35,6 @@ TEST(Parser, SanityTest) {
Record *Foo = Records.getDef("Foo");
Optional<StringRef> Field = Foo->getValueAsOptionalString("strField");
- EXPECT_TRUE(Field.hasValue());
- EXPECT_EQ(Field.getValue(), "value");
+ EXPECT_TRUE(Field.has_value());
+ EXPECT_EQ(*Field, "value");
}