Skip to content

Commit b01889c

Browse files
committed
Acutally use the variable I introduced
1 parent d3c685d commit b01889c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/StructLayout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ void StructLayoutBuilder::addNonFixedSizeElement(ElementLayout &elt) {
313313
/// Add an empty element to the aggregate.
314314
void StructLayoutBuilder::addEmptyElement(ElementLayout &elt) {
315315
auto byteOffset = isFixedLayout() ? CurSize : Size(0);
316-
elt.completeEmpty(elt.getType().isPOD(ResilienceExpansion::Maximal), CurSize);
316+
elt.completeEmpty(elt.getType().isPOD(ResilienceExpansion::Maximal), byteOffset);
317317
}
318318

319319
/// Add an element at the fixed offset of the current end of the

0 commit comments

Comments
 (0)