Skip to content

Commit 0116b0f

Browse files
committed
[AST] NFC: Make RecursiveTypeProperties have a natural size
1 parent 115a362 commit 0116b0f

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)