Commit 857fa4fa by Evan Brown Committed by Copybara-Service

Make moved-from swisstables behave the same as empty tables. Note that we may…

Make moved-from swisstables behave the same as empty tables. Note that we may change this in the future.

PiperOrigin-RevId: 675576092
Change-Id: Ibbe1d9d2b644ce6f6182a2d197635d6a0c5327f6
parent cbf59087
...@@ -1353,10 +1353,7 @@ class CommonFields : public CommonFieldsGenerationInfo { ...@@ -1353,10 +1353,7 @@ class CommonFields : public CommonFieldsGenerationInfo {
} }
template <bool kSooEnabled> template <bool kSooEnabled>
static CommonFields CreateMovedFrom() { static CommonFields CreateMovedFrom() {
// For SOO, we still need to initialize the size to 0 to distinguish between return CreateDefault<kSooEnabled>();
// full/empty SOO cases.
return kSooEnabled ? CommonFields{soo_tag_t{}}
: CommonFields{moved_from_non_soo_tag_t{}};
} }
// The inline data for SOO is written on top of control_/slots_. // The inline data for SOO is written on top of control_/slots_.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment