forked from OSchip/llvm-project
Use the IDVal directly as there's no need to convert to std::string.
Pointed out by Chris! llvm-svn: 117557
This commit is contained in:
parent
bdc5c27894
commit
41e6cebb40
|
@ -1279,10 +1279,10 @@ bool AsmParser::ParseDirectiveSet(StringRef IDVal) {
|
|||
StringRef Name;
|
||||
|
||||
if (ParseIdentifier(Name))
|
||||
return TokError("expected identifier after '" + Twine(IDVal.str()) + "'");
|
||||
return TokError("expected identifier after '" + Twine(IDVal) + "'");
|
||||
|
||||
if (getLexer().isNot(AsmToken::Comma))
|
||||
return TokError("unexpected token in '" + Twine(IDVal.str()) + "'");
|
||||
return TokError("unexpected token in '" + Twine(IDVal) + "'");
|
||||
Lex();
|
||||
|
||||
return ParseAssignment(Name);
|
||||
|
|
Loading…
Reference in New Issue