mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 03:40:35 +00:00
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
8555f153e9
commit
2aedee6ff2
@ -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
Block a user