Skip to content

Commit 90efa57

Browse files
[gardening] Make sure FieldRecordFlags.Data never contains uninitialized data
This will silence the warning "The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage."
1 parent af14d8c commit 90efa57

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)