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(
761761 }
762762
763763 if (SanitizerOptions->SanitizeAddress ) {
764- // FIXME: Rust does not expose the UseAfterScope option.
765764 PipelineStartEPCallbacks.push_back ([&](ModulePassManager &MPM) {
766765 MPM.addPass (RequireAnalysisPass<ASanGlobalsMetadataAnalysis, Module>());
767766 });
768767 OptimizerLastEPCallbacks.push_back (
769768 [SanitizerOptions](FunctionPassManager &FPM, PassBuilder::OptimizationLevel Level) {
770769 FPM.addPass (AddressSanitizerPass (
771- /* CompileKernel=*/ false , SanitizerOptions->SanitizeRecover ));
770+ /* CompileKernel=*/ false , SanitizerOptions->SanitizeRecover ,
771+ /* UseAfterScope=*/ true ));
772772 }
773773 );
774774 PipelineStartEPCallbacks.push_back (
You can’t perform that action at this time.
0 commit comments