[llvm] 3892e8e - Non functional change. Initialize var EnumVal to 0. (#82987)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 17:25:17 PST 2024


Author: MalaySanghiIntel
Date: 2024-02-27T09:25:13+08:00
New Revision: 3892e8e59ce4b85fc191a273106d7342f74d5d68

URL: https://github.com/llvm/llvm-project/commit/3892e8e59ce4b85fc191a273106d7342f74d5d68
DIFF: https://github.com/llvm/llvm-project/commit/3892e8e59ce4b85fc191a273106d7342f74d5d68.diff

LOG: Non functional change. Initialize var EnumVal to 0. (#82987)

CodeGenInstruction has a new unsigned member EnumVal. It is not
initialized in either the class or the constructor.

Added: 
    

Modified: 
    llvm/utils/TableGen/CodeGenInstruction.h

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h
index 11a3acd8e72335..963c9f0b259259 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.h
+++ b/llvm/utils/TableGen/CodeGenInstruction.h
@@ -301,7 +301,7 @@ class CodeGenInstruction {
   Record *InferredFrom;
 
   // The enum value assigned by CodeGenTarget::computeInstrsByEnum.
-  mutable unsigned EnumVal;
+  mutable unsigned EnumVal = 0;
 
   CodeGenInstruction(Record *R);
 


        


More information about the llvm-commits mailing list