[llvm] r252222 - Fix Kaleidoscope example.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 5 14:18:31 PST 2015
Author: pcc
Date: Thu Nov 5 16:18:31 2015
New Revision: 252222
URL: http://llvm.org/viewvc/llvm-project?rev=252222&view=rev
Log:
Fix Kaleidoscope example.
Modified:
llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp
Modified: llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp?rev=252222&r1=252221&r2=252222&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp (original)
+++ llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp Thu Nov 5 16:18:31 2015
@@ -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);
More information about the llvm-commits
mailing list