Skip to content

Commit cd91b7b

Browse files
Merge pull request #6368 from practicalswift/initialize-fieldrecordflags-data-to-zero
[gardening] Make sure FieldRecordFlags.Data never contains uninitialized data
2 parents 8ee628f + 90efa57 commit cd91b7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Reflection/Records.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FieldRecordFlags {
3232
// Is this an indirect enum case?
3333
IsIndirectCase = 0x1
3434
};
35-
int_type Data;
35+
int_type Data = 0;
3636

3737
public:
3838
bool isIndirectCase() const {

0 commit comments

Comments
 (0)