Skip to content

Commit 5375009

Browse files
authored
[llvm][Support] Add quotes around option name (#81784)
1 parent d485317 commit 5375009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Support/CommandLine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ template <class DataType> class parser : public generic_parser_base {
878878
void addLiteralOption(StringRef Name, const DT &V, StringRef HelpStr) {
879879
#ifndef NDEBUG
880880
if (findOption(Name) != Values.size())
881-
report_fatal_error("Option " + Name + " already exists!");
881+
report_fatal_error("Option '" + Name + "' already exists!");
882882
#endif
883883
OptionInfo X(Name, static_cast<DataType>(V), HelpStr);
884884
Values.push_back(X);

0 commit comments

Comments
 (0)