We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6eace commit 91b4a24Copy full SHA for 91b4a24
src/rustllvm/PassWrapper.cpp
@@ -761,14 +761,14 @@ LLVMRustOptimizeWithNewPassManager(
761
}
762
763
if (SanitizerOptions->SanitizeAddress) {
764
- // FIXME: Rust does not expose the UseAfterScope option.
765
PipelineStartEPCallbacks.push_back([&](ModulePassManager &MPM) {
766
MPM.addPass(RequireAnalysisPass<ASanGlobalsMetadataAnalysis, Module>());
767
});
768
OptimizerLastEPCallbacks.push_back(
769
[SanitizerOptions](FunctionPassManager &FPM, PassBuilder::OptimizationLevel Level) {
770
FPM.addPass(AddressSanitizerPass(
771
- /*CompileKernel=*/false, SanitizerOptions->SanitizeRecover));
+ /*CompileKernel=*/false, SanitizerOptions->SanitizeRecover,
+ /*UseAfterScope=*/true));
772
773
);
774
PipelineStartEPCallbacks.push_back(
0 commit comments