[llvm] 109f2f0 - AMDGPU/NewPM: Initialize class member

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 21:55:53 PDT 2024


Author: Vitaly Buka
Date: 2024-08-09T21:54:55-07:00
New Revision: 109f2f04bcf8f0010380d235a03799520dd4c37c

URL: https://github.com/llvm/llvm-project/commit/109f2f04bcf8f0010380d235a03799520dd4c37c
DIFF: https://github.com/llvm/llvm-project/commit/109f2f04bcf8f0010380d235a03799520dd4c37c.diff

LOG: AMDGPU/NewPM: Initialize class member

After #102654

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
index fa66d53bd7c64..e73e92b31217d 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
@@ -33,7 +33,7 @@ class AMDGPUAnnotateUniformValues
   MemorySSA *MSSA;
   AliasAnalysis *AA;
   bool isEntryFunc;
-  bool Changed;
+  bool Changed = false;
 
   void setUniformMetadata(Instruction *I) {
     I->setMetadata("amdgpu.uniform", MDNode::get(I->getContext(), {}));


        


More information about the llvm-commits mailing list