aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2018-11-13 02:59:27 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2018-11-13 02:59:27 +0000
commitf2e7b94e103c8b2e4c09fe371d48ed3c1c5d1a25 (patch)
treea54ac0cfdbf0af8b9d9df274a79c08fcecaaab12
parentf2fbd3c0ba47d14019fe4dc2726c5cea37105da7 (diff)
[BuildingAJIT] Fixing the build by inserting a forgotten paren.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346730 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp b/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp
index 76162ae444d..e7c3624aa04 100644
--- a/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp
+++ b/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp
@@ -679,7 +679,7 @@ static std::unique_ptr<FunctionAST> ParseDefinition() {
static std::unique_ptr<FunctionAST> ParseTopLevelExpr(unsigned ExprCount) {
if (auto E = ParseExpression()) {
// Make an anonymous proto.
- auto Proto = llvm::make_unique<PrototypeAST>
+ auto Proto = llvm::make_unique<PrototypeAST>(
("__anon_expr" + Twine(ExprCount)).str(), std::vector<std::string>());
return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E));
}