From d440ce6a9f6d8cfa532007add77754d956038407 Mon Sep 17 00:00:00 2001 From: Augie Fackler Date: Thu, 4 Nov 2021 18:08:32 -0400 Subject: [PATCH] Didn't mean to invert this boolean. --- compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index 94dce9f46fb..baeb17ed1cb 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -893,7 +893,7 @@ LLVMRustOptimizeWithNewPassManager( AddressSanitizerOptions opts = AddressSanitizerOptions{ /*CompileKernel=*/false, SanitizerOptions->SanitizeAddressRecover, - /*UseAfterScope=*/false, + /*UseAfterScope=*/true, AsanDetectStackUseAfterReturnMode::Runtime, }; MPM.addPass(ModuleAddressSanitizerPass(opts));