Skip to content

Commit 67fed9c

Browse files
committed
verify memoryssa on debug
1 parent e3c03d6 commit 67fed9c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/codegen.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9068,9 +9068,14 @@ extern "C" void jl_init_llvm(void)
90689068
cl::ProvidePositionalOption(clopt, "true", 1);
90699069
#else
90709070
cl::ProvidePositionalOption(clopt, "false", 1);
9071-
#endif
9071+
#endif // JL_LLVM_OPAQUE_POINTERS
9072+
#ifdef JL_DEBUG_BUILD
9073+
clopt = llvmopts.lookup("verify-memoryssa");
9074+
if (clopt && clopt->getNumOccurrences() == 0) {
9075+
cl::ProvidePositionalOption(clopt, "true", 1);
90729076
}
9073-
#endif
9077+
#endif // JL_DEBUG_BUILD
9078+
#endif // JL_LLVM_VERSION
90749079

90759080
jl_ExecutionEngine = new JuliaOJIT();
90769081

0 commit comments

Comments
 (0)