[PATCH] D52166: Fixed code snippet in Kaleidoscope tutorial to reflect final full code listing

Wilfred Hughes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 16 10:37:34 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL354205: Fixed code snippet in Kaleidoscope tutorial to reflect final full code listing (authored by Wilfred, committed by ).
Herald added a project: LLVM.

Changed prior to commit:
  https://reviews.llvm.org/D52166?vs=165731&id=187141#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D52166/new/

https://reviews.llvm.org/D52166

Files:
  llvm/trunk/docs/tutorial/LangImpl03.rst


Index: llvm/trunk/docs/tutorial/LangImpl03.rst
===================================================================
--- llvm/trunk/docs/tutorial/LangImpl03.rst
+++ llvm/trunk/docs/tutorial/LangImpl03.rst
@@ -275,7 +275,7 @@
         FunctionType::get(Type::getDoubleTy(TheContext), Doubles, false);
 
       Function *F =
-        Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
+        Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
 
 This code packs a lot of power into a few lines. Note first that this
 function returns a "Function\*" instead of a "Value\*". Because a


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52166.187141.patch
Type: text/x-patch
Size: 617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190216/640d8e1c/attachment.bin>


More information about the llvm-commits mailing list