[llvm] r354205 - Fixed code snippet in Kaleidoscope tutorial to reflect final full code listing
Wilfred Hughes via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 16 10:37:55 PST 2019
Author: wilfred
Date: Sat Feb 16 10:37:55 2019
New Revision: 354205
URL: http://llvm.org/viewvc/llvm-project?rev=354205&view=rev
Log:
Fixed code snippet in Kaleidoscope tutorial to reflect final full code listing
Patch by Frank He.
Differential Revision: https://reviews.llvm.org/D52166
Modified:
llvm/trunk/docs/tutorial/LangImpl03.rst
Modified: llvm/trunk/docs/tutorial/LangImpl03.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl03.rst?rev=354205&r1=354204&r2=354205&view=diff
==============================================================================
--- llvm/trunk/docs/tutorial/LangImpl03.rst (original)
+++ llvm/trunk/docs/tutorial/LangImpl03.rst Sat Feb 16 10:37:55 2019
@@ -275,7 +275,7 @@ with:
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
More information about the llvm-commits
mailing list