Skip to content

Commit a596f95

Browse files
committed
verify memoryssa on debug
1 parent e3c03d6 commit a596f95

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/codegen.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9068,9 +9068,15 @@ 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
90729072
}
9073-
#endif
9073+
#ifdef JL_DEBUG_BUILD
9074+
clopt = llvmopts.lookup("verify-memoryssa");
9075+
if (clopt && clopt->getNumOccurrences() == 0) {
9076+
cl::ProvidePositionalOption(clopt, "true", 1);
9077+
}
9078+
#endif // JL_DEBUG_BUILD
9079+
#endif // JL_LLVM_VERSION
90749080

90759081
jl_ExecutionEngine = new JuliaOJIT();
90769082

0 commit comments

Comments
 (0)