llvm.org GIT mirror llvm / 778e064
Fix lli with OrcLazyJIT: the default DataLayout was used. Set the correct one using the TargetMachine instead. From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243664 91177308-0d34-0410-b5e6-96231b3b80d8 Mehdi Amini 5 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
122122 EngineBuilder EB;
123123 EB.setOptLevel(getOptLevel());
124124 auto TM = std::unique_ptr(EB.selectTarget());
125 M->setDataLayout(TM->createDataLayout());
125126 auto &Context = getGlobalContext();
126127 auto CallbackMgrBuilder =
127128 OrcLazyJIT::createCallbackManagerBuilder(Triple(TM->getTargetTriple()));