projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f220be
)
Fix Kaleidoscope example.
author
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 5 Nov 2015 22:18:31 +0000
(22:18 +0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 5 Nov 2015 22:18:31 +0000
(22:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252222
91177308
-0d34-0410-b5e6-
96231b3b80d8
examples/Kaleidoscope/Chapter8/toy.cpp
patch
|
blob
|
history
diff --git
a/examples/Kaleidoscope/Chapter8/toy.cpp
b/examples/Kaleidoscope/Chapter8/toy.cpp
index 7eaf16caa075cebda98b01bba86b03c241c0ec3d..289209b3df49e46f7eea887b5093b9262853e54b 100644
(file)
--- a/
examples/Kaleidoscope/Chapter8/toy.cpp
+++ b/
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);