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
This commit is contained in:
Chris Lattner
2008-04-14 16:44:41 +00:00
parent d660f973dc
commit 6c4be9c23b
6 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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