llvm.org GIT mirror llvm / 6c4be9c
improve diagnostics in call parsing, patch suggested by Matthijs Kooijman git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49648 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
6 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
336336 if (CurTok == ')') break;
337337
338338 if (CurTok != ',')
339 return Error("Expected ')'");
339 return Error("Expected ')' or ',' in argument list");
340340 getNextToken();
341341 }
342342 }
10061006 if (CurTok == ')') break;
10071007
10081008 if (CurTok != ',')
1009 return Error("Expected ')'");
1009 return Error("Expected ')' or ',' in argument list");
10101010 getNextToken();
10111011 }
10121012 }
880880 if (CurTok == ')') break;
881881
882882 if (CurTok != ',')
883 return Error("Expected ')'");
883 return Error("Expected ')' or ',' in argument list");
884884 getNextToken();
885885 }
886886 }
713713 if (CurTok == ')') break;
714714
715715 if (CurTok != ',')
716 return Error("Expected ')'");
716 return Error("Expected ')' or ',' in argument list");
717717 getNextToken();
718718 }
719719 }
11361136 if (CurTok == ')') break;
11371137
11381138 if (CurTok != ',')
1139 return Error("Expected ')'");
1139 return Error("Expected ')' or ',' in argument list");
11401140 getNextToken();
11411141 }
11421142 }
10841084 if (CurTok == ')') break;
10851085
10861086 if (CurTok != ',')
1087 return Error("Expected ')'");
1087 return Error("Expected ')' or ',' in argument list");
10881088 getNextToken();
10891089 }
10901090 }
12851285 if (CurTok == ')') break;
12861286
12871287 if (CurTok != ',')
1288 return Error("Expected ')'");
1288 return Error("Expected ')' or ',' in argument list");
12891289 getNextToken();
12901290 }
12911291 }