[llvm] c297709 - [AMDGPU] Fixed msan failure with uninitialized value
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 15 13:58:33 PDT 2021
Author: Stanislav Mekhanoshin
Date: 2021-03-15T13:58:19-07:00
New Revision: c297709ee1a9074041e703f10d9cffed0034031d
URL: https://github.com/llvm/llvm-project/commit/c297709ee1a9074041e703f10d9cffed0034031d
DIFF: https://github.com/llvm/llvm-project/commit/c297709ee1a9074041e703f10d9cffed0034031d.diff
LOG: [AMDGPU] Fixed msan failure with uninitialized value
Added:
Modified:
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp b/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
index 6c130f068b36..957f70250b57 100644
--- a/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
@@ -104,7 +104,7 @@ class SILoadStoreOptimizer : public MachineFunctionPass {
unsigned BaseOff;
unsigned DMask;
InstClassEnum InstClass;
- unsigned CPol;
+ unsigned CPol = 0;
bool UseST64;
int AddrIdx[MaxAddressRegs];
const MachineOperand *AddrReg[MaxAddressRegs];
More information about the llvm-commits
mailing list