mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 23:21:04 +00:00
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
This commit is contained in:
parent
dbfa740631
commit
d218316be0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user