From: Roman Divacky Date: Thu, 28 Oct 2010 16:57:58 +0000 (+0000) Subject: Use the IDVal directly as there's no need to convert to std::string. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f9d1752104b13842fe7156c96cabd7b0e43339f0;p=oota-llvm.git 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 --- diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index aa0f9f0ced9..3243354c5ed 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -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);