mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Compact the Offset value in PartiallySerialized
serialization::BitOffset is set up for being in a PointerUnion, but in this case that's not just overkill but actually wasteful, since we have an extra flag to pack in. Use a raw bitfield instead. No functionality change.
This commit is contained in:
@@ -241,7 +241,7 @@ public:
|
|||||||
T Value;
|
T Value;
|
||||||
|
|
||||||
/// The offset.
|
/// The offset.
|
||||||
serialization::BitOffset Offset;
|
unsigned Offset : 31;
|
||||||
|
|
||||||
unsigned IsFullyDeserialized : 1;
|
unsigned IsFullyDeserialized : 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user