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()); }