We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baf382e commit fe02ee8Copy full SHA for fe02ee8
compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -985,7 +985,9 @@ LLVMRustOptimizeWithNewPassManager(
985
if (SanitizerOptions->SanitizeAddress) {
986
OptimizerLastEPCallbacks.push_back(
987
[SanitizerOptions](ModulePassManager &MPM, OptimizationLevel Level) {
988
+#if LLVM_VERSION_LT(15, 0)
989
MPM.addPass(RequireAnalysisPass<ASanGlobalsMetadataAnalysis, Module>());
990
+#endif
991
#if LLVM_VERSION_GE(14, 0)
992
AddressSanitizerOptions opts = AddressSanitizerOptions{
993
/*CompileKernel=*/false,
0 commit comments