diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-13 01:58:03 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-13 01:58:03 -0700 |
commit | e5f568a49f2bbc69a1fc30be818613e0c7fe0499 (patch) | |
tree | 1af704cf2d73455db936d634e5a5c8e1f01300c1 /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | |
parent | 7c3cda551ac702de4eb8899180aa715896020d43 (diff) | |
download | llvm-e5f568a49f2bbc69a1fc30be818613e0c7fe0499.zip llvm-e5f568a49f2bbc69a1fc30be818613e0c7fe0499.tar.gz llvm-e5f568a49f2bbc69a1fc30be818613e0c7fe0499.tar.bz2 |
Use has_value instead of hasValue (NFC)
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
-rw-r--r-- | lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp index d15b852..a57890c 100644 --- a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp +++ b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp @@ -190,7 +190,7 @@ TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfo) { R"("file_path":"/foo/bar.so","file_offset":0,"file_size":1234}]])"); auto result = async_result.get(); - ASSERT_TRUE(result.hasValue()); + ASSERT_TRUE(result.has_value()); ASSERT_EQ(1u, result->size()); EXPECT_EQ("/foo/bar.so", result.getValue()[0].GetFileSpec().GetPath()); EXPECT_EQ(triple, result.getValue()[0].GetArchitecture().GetTriple()); @@ -215,7 +215,7 @@ TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfo_UUID20) { R"("file_path":"/foo/bar.so","file_offset":0,"file_size":1234}]])"); auto result = async_result.get(); - ASSERT_TRUE(result.hasValue()); + ASSERT_TRUE(result.has_value()); ASSERT_EQ(1u, result->size()); EXPECT_EQ("/foo/bar.so", result.getValue()[0].GetFileSpec().GetPath()); EXPECT_EQ(triple, result.getValue()[0].GetArchitecture().GetTriple()); |