diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2015-11-05 22:18:31 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2015-11-05 22:18:31 +0000 |
| commit | a252ea08b5e0cef0f4c0877f4c4fa1d3a8fdd50a (patch) | |
| tree | 3ccc015fec0ead8396e926a53349bb41d201e5a4 /llvm/examples | |
| parent | 8324851a4eec3cf12d8b042eaa5cc7bf58d52212 (diff) | |
| download | bcm5719-llvm-a252ea08b5e0cef0f4c0877f4c4fa1d3a8fdd50a.tar.gz bcm5719-llvm-a252ea08b5e0cef0f4c0877f4c4fa1d3a8fdd50a.zip | |
Fix Kaleidoscope example.
llvm-svn: 252222
Diffstat (limited to 'llvm/examples')
| -rw-r--r-- | llvm/examples/Kaleidoscope/Chapter8/toy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp index 7eaf16caa07..289209b3df4 100644 --- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp @@ -1251,7 +1251,8 @@ Function *FunctionAST::codegen() { FContext, P.getName(), StringRef(), Unit, LineNo, CreateFunctionType(TheFunction->arg_size(), Unit), false /* internal linkage */, true /* definition */, ScopeLine, - DINode::FlagPrototyped, false, TheFunction); + DINode::FlagPrototyped, false); + TheFunction->setSubprogram(SP); // Push the current scope. KSDbgInfo.LexicalBlocks.push_back(SP); |

