diff options
author | Zachary Turner <zturner@google.com> | 2016-11-12 20:41:02 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-11-12 20:41:02 +0000 |
commit | 442f6530d21d0980c591522a1bd35dcaebce6f68 (patch) | |
tree | d0dfcd032d930ebc77461e41520f4a73012f0c76 /lldb/source/Interpreter/CommandObjectRegexCommand.cpp | |
parent | e2411fabdaf01d883d77cf3f8456367a9dc685ff (diff) | |
download | llvm-442f6530d21d0980c591522a1bd35dcaebce6f68.zip llvm-442f6530d21d0980c591522a1bd35dcaebce6f68.tar.gz llvm-442f6530d21d0980c591522a1bd35dcaebce6f68.tar.bz2 |
Make CommandObject help getters/setters use StringRef.
llvm-svn: 286731
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectRegexCommand.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandObjectRegexCommand.cpp | 2 |
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 " |