X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=examples%2FKaleidoscope%2FChapter2%2Ftoy.cpp;h=14cba32f5f91308584baa2a236efda4af9b67a27;hp=9ecf75d346706f71d3469eaaec1a3b6b0800344f;hb=28388315a9e1a4a2c8eaf07e8dc3f3245157df6b;hpb=fd356522cd5bae1bc1b0f38971649a4ba165f463 diff --git a/examples/Kaleidoscope/Chapter2/toy.cpp b/examples/Kaleidoscope/Chapter2/toy.cpp index 9ecf75d3467..14cba32f5f9 100644 --- a/examples/Kaleidoscope/Chapter2/toy.cpp +++ b/examples/Kaleidoscope/Chapter2/toy.cpp @@ -348,8 +348,8 @@ static std::unique_ptr ParseDefinition() { static std::unique_ptr ParseTopLevelExpr() { if (auto E = ParseExpression()) { // Make an anonymous proto. - auto Proto = - llvm::make_unique("", std::vector()); + auto Proto = llvm::make_unique("__anon_expr", + std::vector()); return llvm::make_unique(std::move(Proto), std::move(E)); } return nullptr;