Skip to content

Commit 4583570

Browse files
committed
Fix optional equality check
1 parent 8f3bf8c commit 4583570

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ NativeProcessLinux::Manager::Attach(
320320
llvm::inconvertibleErrorCode());
321321

322322
std::vector<::pid_t> tids;
323-
if (process_info.IsCoreDumping()) {
323+
// IsCoreDumping is an optional, so check for value then true/false.
324+
if (process_info.IsCoreDumping() && *process_info.IsCoreDumping()) {
324325
auto attached_or = NativeProcessLinux::Seize(pid);
325326
if (!attached_or)
326327
return attached_or.takeError();

0 commit comments

Comments
 (0)