Skip to content

Commit 3892e8e

Browse files
authored
Non functional change. Initialize var EnumVal to 0. (llvm#82987)
CodeGenInstruction has a new unsigned member EnumVal. It is not initialized in either the class or the constructor.
1 parent b1d2e85 commit 3892e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/CodeGenInstruction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class CodeGenInstruction {
301301
Record *InferredFrom;
302302

303303
// The enum value assigned by CodeGenTarget::computeInstrsByEnum.
304-
mutable unsigned EnumVal;
304+
mutable unsigned EnumVal = 0;
305305

306306
CodeGenInstruction(Record *R);
307307

0 commit comments

Comments
 (0)