[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:
Jordan Rose
2018-09-11 19:57:48 -07:00
parent 64fe3988fe
commit c7187d69af

View File

@@ -241,7 +241,7 @@ public:
T Value;
/// The offset.
serialization::BitOffset Offset;
unsigned Offset : 31;
unsigned IsFullyDeserialized : 1;