File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -761,14 +761,14 @@ LLVMRustOptimizeWithNewPassManager(
761
761
}
762
762
763
763
if (SanitizerOptions->SanitizeAddress ) {
764
- // FIXME: Rust does not expose the UseAfterScope option.
765
764
PipelineStartEPCallbacks.push_back ([&](ModulePassManager &MPM) {
766
765
MPM.addPass (RequireAnalysisPass<ASanGlobalsMetadataAnalysis, Module>());
767
766
});
768
767
OptimizerLastEPCallbacks.push_back (
769
768
[SanitizerOptions](FunctionPassManager &FPM, PassBuilder::OptimizationLevel Level) {
770
769
FPM.addPass (AddressSanitizerPass (
771
- /* CompileKernel=*/ false , SanitizerOptions->SanitizeRecover ));
770
+ /* CompileKernel=*/ false , SanitizerOptions->SanitizeRecover ,
771
+ /* UseAfterScope=*/ true ));
772
772
}
773
773
);
774
774
PipelineStartEPCallbacks.push_back (
You can’t perform that action at this time.
0 commit comments