Skip to content

Commit e402c10

Browse files
authored
Merge pull request #13054 from davezarzycki/nfc_natural_sized_RecursiveTypeProperties
[AST] NFC: Make RecursiveTypeProperties have a natural size
2 parents 115a362 + 0116b0f commit e402c10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/AST/Types.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class RecursiveTypeProperties {
123123
};
124124

125125
private:
126-
unsigned Bits : BitWidth;
126+
unsigned Bits;
127127

128128
public:
129129
RecursiveTypeProperties() : Bits(0) {}
@@ -376,6 +376,7 @@ class alignas(1 << TypeAlignInBits) TypeBase {
376376

377377
void setRecursiveProperties(RecursiveTypeProperties properties) {
378378
TypeBaseBits.Properties = properties.getBits();
379+
assert(TypeBaseBits.Properties == properties.getBits() && "Bits dropped!");
379380
}
380381

381382
public:

0 commit comments

Comments
 (0)