summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-20 23:35:53 -0700
committerKazu Hirata <kazu@google.com>2022-06-20 23:35:53 -0700
commited8fceaa09cd66324c6efc1070f962731a62e2dc (patch)
tree6f7182e7b1b5829a8586ef68a2c1d83bc5b0edc0 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parent2fcf99d703464882fec88324be7b08f78e004a3f (diff)
Don't use Optional::getValue (NFC)
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index 429c68a9dc78..5324a2c0bf51 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -849,7 +849,7 @@ bool NativeProcessLinux::MonitorClone(NativeThreadLinux &parent,
auto tgid_ret = getPIDForTID(child_pid);
if (tgid_ret != child_pid) {
// A new thread should have PGID matching our process' PID.
- assert(!tgid_ret || tgid_ret.getValue() == GetID());
+ assert(!tgid_ret || *tgid_ret == GetID());
NativeThreadLinux &child_thread = AddThread(child_pid, /*resume*/ true);
ThreadWasCreated(child_thread);