OSDN Git Service

[BuildingAJIT] Fixing the build by inserting a forgotten paren.
[android-x86/external-llvm.git] / examples / Kaleidoscope / BuildingAJIT / Chapter2 / toy.cpp
index 76162ae..e7c3624 100644 (file)
@@ -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));
   }