From d218316be04e24ae4195aa7fdb064607ebbe768d Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 16 Feb 2019 18:37:55 +0000 Subject: [PATCH] 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 --- docs/tutorial/LangImpl03.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/LangImpl03.rst b/docs/tutorial/LangImpl03.rst index 1f2d20f40c7..da465ef7061 100644 --- a/docs/tutorial/LangImpl03.rst +++ b/docs/tutorial/LangImpl03.rst @@ -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