Skip to content

Commit 1767167

Browse files
committed
[Immediate] Switch the JIT codegen opt-level to Default.
This matches MCJIT's default, and may solve some of the linux test failures seen in #29863.
1 parent 7a0754b commit 1767167

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Immediate/Immediate.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ int swift::RunImmediately(CompilerInstance &CI,
315315
.setRelocationModel(llvm::Reloc::PIC_)
316316
.setOptions(std::move(TargetOpt))
317317
.setCPU(std::move(CPU))
318-
.addFeatures(Features))
318+
.addFeatures(Features)
319+
.setCodeGenOptLevel(llvm::CodeGenOpt::Default))
319320
.create();
320321

321322
if (!JITOrErr) {

0 commit comments

Comments
 (0)