1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

update comment and error message; NFC

'notail' was added in:
http://reviews.llvm.org/rL252368

llvm-svn: 253580
This commit is contained in:
Sanjay Patel 2015-11-19 17:35:55 +00:00
parent 03bb5a2376
commit 770d3e85af

View File

@ -5642,6 +5642,8 @@ bool LLParser::ParseLandingPad(Instruction *&Inst, PerFunctionState &PFS) {
/// ParameterList OptionalAttrs
/// ::= 'musttail' 'call' OptionalCallingConv OptionalAttrs Type Value
/// ParameterList OptionalAttrs
/// ::= 'notail' 'call' OptionalCallingConv OptionalAttrs Type Value
/// ParameterList OptionalAttrs
bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,
CallInst::TailCallKind TCK) {
AttrBuilder RetAttrs, FnAttrs;
@ -5656,7 +5658,8 @@ bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,
LocTy CallLoc = Lex.getLoc();
if ((TCK != CallInst::TCK_None &&
ParseToken(lltok::kw_call, "expected 'tail call'")) ||
ParseToken(lltok::kw_call,
"expected 'tail call', 'musttail call', or 'notail call'")) ||
ParseOptionalCallingConv(CC) || ParseOptionalReturnAttrs(RetAttrs) ||
ParseType(RetType, RetTypeLoc, true /*void allowed*/) ||
ParseValID(CalleeID) ||