[llvm] r253580 - update comment and error message; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 09:35:55 PST 2015


Author: spatel
Date: Thu Nov 19 11:35:55 2015
New Revision: 253580

URL: http://llvm.org/viewvc/llvm-project?rev=253580&view=rev
Log:
update comment and error message; NFC

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


Modified:
    llvm/trunk/lib/AsmParser/LLParser.cpp

Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=253580&r1=253579&r2=253580&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Thu Nov 19 11:35:55 2015
@@ -5642,6 +5642,8 @@ bool LLParser::ParseLandingPad(Instructi
 ///       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 *&I
   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) ||




More information about the llvm-commits mailing list