We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c685d commit b01889cCopy full SHA for b01889c
lib/IRGen/StructLayout.cpp
@@ -313,7 +313,7 @@ void StructLayoutBuilder::addNonFixedSizeElement(ElementLayout &elt) {
313
/// Add an empty element to the aggregate.
314
void StructLayoutBuilder::addEmptyElement(ElementLayout &elt) {
315
auto byteOffset = isFixedLayout() ? CurSize : Size(0);
316
- elt.completeEmpty(elt.getType().isPOD(ResilienceExpansion::Maximal), CurSize);
+ elt.completeEmpty(elt.getType().isPOD(ResilienceExpansion::Maximal), byteOffset);
317
}
318
319
/// Add an element at the fixed offset of the current end of the
0 commit comments