aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectRegexCommand.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObjectRegexCommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
index 22824b2..79d3bb1 100644
--- a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
+++ b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
@@ -71,7 +71,7 @@ bool CommandObjectRegexCommand::DoExecute(const char *command,
}
}
result.SetStatus(eReturnStatusFailed);
- if (GetSyntax() != nullptr)
+ if (!GetSyntax().empty())
result.AppendError(GetSyntax());
else
result.AppendErrorWithFormat("Command contents '%s' failed to match any "