summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-04-11 00:56:21 +0000
committerLang Hames <lhames@gmail.com>2015-04-11 00:56:21 +0000
commit43aeb128e1edbe88525cfb5faccf237e6e02358b (patch)
tree8233e3c2d6774e9c3f779ce78186467a5c6bb507 /examples
parentcb36df33ba05ec791a9e67cff25a21691e228b62 (diff)
[Orc] Update kaleidoscope tutorial for API change in r234669.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/Kaleidoscope/Orc/fully_lazy/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp b/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
index e3359dd0e47..b5822921b40 100644
--- a/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
+++ b/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
@@ -1270,7 +1270,7 @@ private:
// pointer for the indirection to point at the trampoline.
std::string BodyPtrName = (F->getName() + "$address").str();
GlobalVariable *FunctionBodyPointer =
- createImplPointer(*F, BodyPtrName,
+ createImplPointer(*F->getType(), *F->getParent(), BodyPtrName,
createIRTypedAddress(*F->getFunctionType(),
CallbackInfo.getAddress()));
makeStub(*F, *FunctionBodyPointer);