mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
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:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user