We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 62a787c + fe02ee8 commit db872eeCopy full SHA for db872ee
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