Make DataLayout Non-Optional in the Module
[oota-llvm.git] / examples / Kaleidoscope / Orc / fully_lazy / toy.cpp
index 9c93d128cc8e0f665d7061a6da3864911da68d0a..d101a29424de6e4959dc3ce3bf07abf2cfa0bf61 100644 (file)
@@ -716,7 +716,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; }