Skip to content

Commit 25ec6ba

Browse files
committed
Merge pull request #12194 from ihnorton/llvm-api-r240826
llvm api update for r240826
2 parents 16ff338 + 8cd2e39 commit 25ec6ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/codegen.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ static void jl_setup_module(Module *m, bool add)
690690
#endif
691691
#ifdef LLVM37
692692
if (jl_ExecutionEngine) {
693-
m->setDataLayout(jl_ExecutionEngine->getDataLayout()->getStringRepresentation());
693+
m->setDataLayout(jl_ExecutionEngine->getDataLayout().getStringRepresentation());
694694
m->setTargetTriple(jl_TargetMachine->getTargetTriple().str());
695695
}
696696
#elif LLVM36
@@ -5575,8 +5575,8 @@ extern "C" void jl_init_codegen(void)
55755575
mbuilder = new MDBuilder(getGlobalContext());
55765576

55775577
#ifdef LLVM37
5578-
m->setDataLayout(jl_ExecutionEngine->getDataLayout()->getStringRepresentation());
5579-
engine_module->setDataLayout(jl_ExecutionEngine->getDataLayout()->getStringRepresentation());
5578+
m->setDataLayout(jl_ExecutionEngine->getDataLayout().getStringRepresentation());
5579+
engine_module->setDataLayout(jl_ExecutionEngine->getDataLayout().getStringRepresentation());
55805580
m->setTargetTriple(jl_TargetMachine->getTargetTriple().str());
55815581
engine_module->setTargetTriple(jl_TargetMachine->getTargetTriple().str());
55825582
#elif LLVM36

0 commit comments

Comments
 (0)