llvm.org GIT mirror llvm / d218316
Fixed code snippet in Kaleidoscope tutorial to reflect final full code listing Patch by Frank He. Differential Revision: https://reviews.llvm.org/D52166 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354205 91177308-0d34-0410-b5e6-96231b3b80d8 Wilfred Hughes 6 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
274274 FunctionType::get(Type::getDoubleTy(TheContext), Doubles, false);
275275
276276 Function *F =
277 Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
277 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
278278
279279 This code packs a lot of power into a few lines. Note first that this
280280 function returns a "Function\*" instead of a "Value\*". Because a