diff options
author | Wilfred Hughes <me@wilfred.me.uk> | 2019-02-16 18:37:55 +0000 |
---|---|---|
committer | Wilfred Hughes <me@wilfred.me.uk> | 2019-02-16 18:37:55 +0000 |
commit | a532d2cc81b0c67e741137dce6531c51c8506241 (patch) | |
tree | df936728175036156f1dcfe4096db6a67f89c7fd | |
parent | 40046bc8430f0b90d76cef9e6cc62ccc2abcb0b0 (diff) | |
download | bcm5719-llvm-a532d2cc81b0c67e741137dce6531c51c8506241.tar.gz bcm5719-llvm-a532d2cc81b0c67e741137dce6531c51c8506241.zip |
Fixed code snippet in Kaleidoscope tutorial to reflect final full code listing
Patch by Frank He.
Differential Revision: https://reviews.llvm.org/D52166
llvm-svn: 354205
-rw-r--r-- | llvm/docs/tutorial/LangImpl03.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/LangImpl03.rst b/llvm/docs/tutorial/LangImpl03.rst index 1f2d20f40c7..da465ef7061 100644 --- a/llvm/docs/tutorial/LangImpl03.rst +++ b/llvm/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 |