Fix a typo in the error message for an incorrect prototype.

Summary: Cut & paste error had the error message mentionning "}" rather than ")".

Differential Revision: https://reviews.llvm.org/D77625
This commit is contained in:
Jean-Luc Brouillet 2020-04-13 15:40:56 -07:00 committed by River Riddle
parent cfc002714a
commit 9b1a0d300e
7 changed files with 7 additions and 7 deletions

View File

@ -428,7 +428,7 @@ private:
} while (true);
}
if (lexer.getCurToken() != ')')
return parseError<PrototypeAST>("}", "to end function prototype");
return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));

View File

@ -428,7 +428,7 @@ private:
} while (true);
}
if (lexer.getCurToken() != ')')
return parseError<PrototypeAST>("}", "to end function prototype");
return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));

View File

@ -428,7 +428,7 @@ private:
} while (true);
}
if (lexer.getCurToken() != ')')
return parseError<PrototypeAST>("}", "to end function prototype");
return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));

View File

@ -428,7 +428,7 @@ private:
} while (true);
}
if (lexer.getCurToken() != ')')
return parseError<PrototypeAST>("}", "to end function prototype");
return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));

View File

@ -428,7 +428,7 @@ private:
} while (true);
}
if (lexer.getCurToken() != ')')
return parseError<PrototypeAST>("}", "to end function prototype");
return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));

View File

@ -428,7 +428,7 @@ private:
} while (true);
}
if (lexer.getCurToken() != ')')
return parseError<PrototypeAST>("}", "to end function prototype");
return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));

View File

@ -583,7 +583,7 @@ private:
} while (true);
}
if (lexer.getCurToken() != ')')
return parseError<PrototypeAST>("}", "to end function prototype");
return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));