From b04b0cb1ff103512d100c1a20a94368e5143fc4c Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 23 Jul 2021 02:25:33 -0700 Subject: [PATCH] [hwasan] Fix uninitialized DisableOptimization --- lib/Transforms/Instrumentation/HWAddressSanitizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp index f800e500cc2..60a4ee8811f 100644 --- a/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp +++ b/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp @@ -362,7 +362,8 @@ public: explicit HWAddressSanitizerLegacyPass(bool CompileKernel = false, bool Recover = false, bool DisableOptimization = false) - : FunctionPass(ID), CompileKernel(CompileKernel), Recover(Recover) { + : FunctionPass(ID), CompileKernel(CompileKernel), Recover(Recover), + DisableOptimization(DisableOptimization) { initializeHWAddressSanitizerLegacyPassPass( *PassRegistry::getPassRegistry()); }