improve diagnostics in call parsing, patch suggested by

Matthijs Kooijman

llvm-svn: 49648
This commit is contained in:
Chris Lattner 2008-04-14 16:44:41 +00:00
parent 16a8a3be41
commit f87e052128
6 changed files with 7 additions and 7 deletions

View File

@ -337,7 +337,7 @@ static ExprAST *ParseIdentifierExpr() {
if (CurTok == ')') break;
if (CurTok != ',')
return Error("Expected ')'");
return Error("Expected ')' or ',' in argument list");
getNextToken();
}
}
@ -1007,7 +1007,7 @@ static ExprAST *ParseIdentifierExpr() {
if (CurTok == ')') break;
if (CurTok != ',')
return Error("Expected ')'");
return Error("Expected ')' or ',' in argument list");
getNextToken();
}
}

View File

@ -881,7 +881,7 @@ static ExprAST *ParseIdentifierExpr() {
if (CurTok == ')') break;
if (CurTok != ',')
return Error("Expected ')'");
return Error("Expected ')' or ',' in argument list");
getNextToken();
}
}

View File

@ -714,7 +714,7 @@ static ExprAST *ParseIdentifierExpr() {
if (CurTok == ')') break;
if (CurTok != ',')
return Error("Expected ')'");
return Error("Expected ')' or ',' in argument list");
getNextToken();
}
}

View File

@ -1137,7 +1137,7 @@ static ExprAST *ParseIdentifierExpr() {
if (CurTok == ')') break;
if (CurTok != ',')
return Error("Expected ')'");
return Error("Expected ')' or ',' in argument list");
getNextToken();
}
}

View File

@ -1085,7 +1085,7 @@ static ExprAST *ParseIdentifierExpr() {
if (CurTok == ')') break;
if (CurTok != ',')
return Error("Expected ')'");
return Error("Expected ')' or ',' in argument list");
getNextToken();
}
}

View File

@ -1286,7 +1286,7 @@ static ExprAST *ParseIdentifierExpr() {
if (CurTok == ')') break;
if (CurTok != ',')
return Error("Expected ')'");
return Error("Expected ')' or ',' in argument list");
getNextToken();
}
}