diff options
Diffstat (limited to 'examples/Kaleidoscope/Orc/initial/toy.cpp')
-rw-r--r-- | examples/Kaleidoscope/Orc/initial/toy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Kaleidoscope/Orc/initial/toy.cpp b/examples/Kaleidoscope/Orc/initial/toy.cpp index 1b65e8c..cc6fb8e 100644 --- a/examples/Kaleidoscope/Orc/initial/toy.cpp +++ b/examples/Kaleidoscope/Orc/initial/toy.cpp @@ -715,7 +715,7 @@ public: M(new Module(GenerateUniqueName("jit_module_"), Session.getLLVMContext())), Builder(Session.getLLVMContext()) { - M->setDataLayout(Session.getTarget().getDataLayout()); + M->setDataLayout(*Session.getTarget().getDataLayout()); } SessionContext& getSession() { return Session; } |