1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

[hwasan] Fix uninitialized DisableOptimization

This commit is contained in:
Vitaly Buka 2021-07-23 02:25:33 -07:00
parent f41dff2733
commit b04b0cb1ff

View File

@ -362,7 +362,8 @@ public:
explicit HWAddressSanitizerLegacyPass(bool CompileKernel = false, explicit HWAddressSanitizerLegacyPass(bool CompileKernel = false,
bool Recover = false, bool Recover = false,
bool DisableOptimization = false) bool DisableOptimization = false)
: FunctionPass(ID), CompileKernel(CompileKernel), Recover(Recover) { : FunctionPass(ID), CompileKernel(CompileKernel), Recover(Recover),
DisableOptimization(DisableOptimization) {
initializeHWAddressSanitizerLegacyPassPass( initializeHWAddressSanitizerLegacyPassPass(
*PassRegistry::getPassRegistry()); *PassRegistry::getPassRegistry());
} }