Summary: Cut & paste error had the error message mentionning "}" rather than ")".
Differential Revision: https://reviews.llvm.org/D77625
} while (true);
}
if (lexer.getCurToken() != ')')
- return parseError<PrototypeAST>("}", "to end function prototype");
+ return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));
} while (true);
}
if (lexer.getCurToken() != ')')
- return parseError<PrototypeAST>("}", "to end function prototype");
+ return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));
} while (true);
}
if (lexer.getCurToken() != ')')
- return parseError<PrototypeAST>("}", "to end function prototype");
+ return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));
} while (true);
}
if (lexer.getCurToken() != ')')
- return parseError<PrototypeAST>("}", "to end function prototype");
+ return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));
} while (true);
}
if (lexer.getCurToken() != ')')
- return parseError<PrototypeAST>("}", "to end function prototype");
+ return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));
} while (true);
}
if (lexer.getCurToken() != ')')
- return parseError<PrototypeAST>("}", "to end function prototype");
+ return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));
} while (true);
}
if (lexer.getCurToken() != ')')
- return parseError<PrototypeAST>("}", "to end function prototype");
+ return parseError<PrototypeAST>(")", "to end function prototype");
// success.
lexer.consume(Token(')'));