mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
Make CommandObject help getters/setters use StringRef.
llvm-svn: 286731
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user