mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Use the IDVal directly as there's no need to convert to std::string.
Pointed out by Chris! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117557 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
50e7a78709
commit
f9d1752104
@ -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…
x
Reference in New Issue
Block a user