diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-06 11:21:39 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-06 11:21:39 -0700 |
commit | c8e6ebd74e548bd79662166906de53554773265e (patch) | |
tree | 31c2bb46570d60295f721474426212085cea479d /bolt/unittests | |
parent | 9750648cb44e3b201bce5878ce785228d1c005c7 (diff) | |
download | llvm-c8e6ebd74e548bd79662166906de53554773265e.tar.gz |
Use value instead of getValue (NFC)
Diffstat (limited to 'bolt/unittests')
-rw-r--r-- | bolt/unittests/Core/MCPlusBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt/unittests/Core/MCPlusBuilder.cpp b/bolt/unittests/Core/MCPlusBuilder.cpp index 17bb686d5622..9391d6f04f81 100644 --- a/bolt/unittests/Core/MCPlusBuilder.cpp +++ b/bolt/unittests/Core/MCPlusBuilder.cpp @@ -142,7 +142,7 @@ TEST_P(MCPlusBuilderTester, Annotation) { // Round-trip encoding-decoding check for negative values Optional<MCPlus::MCLandingPad> EHInfo = BC->MIB->getEHInfo(Inst); ASSERT_TRUE(EHInfo.has_value()); - MCPlus::MCLandingPad LP = EHInfo.getValue(); + MCPlus::MCLandingPad LP = EHInfo.value(); uint64_t DecodedValue = LP.second; ASSERT_EQ(Value, DecodedValue); |