OSDN Git Service

Add bracket that was lost in rL346727 and has been causing buildbot failures for...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 13 Nov 2018 11:28:46 +0000 (11:28 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 13 Nov 2018 11:28:46 +0000 (11:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346752 91177308-0d34-0410-b5e6-96231b3b80d8

examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp

index 76162ae..8cbd5d6 100644 (file)
@@ -680,7 +680,7 @@ static std::unique_ptr<FunctionAST> ParseTopLevelExpr(unsigned ExprCount) {
   if (auto E = ParseExpression()) {
     // Make an anonymous proto.
     auto Proto = llvm::make_unique<PrototypeAST>
-        ("__anon_expr" + Twine(ExprCount)).str(), std::vector<std::string>());
+        (("__anon_expr" + Twine(ExprCount)).str(), std::vector<std::string>());
     return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E));
   }
   return nullptr;