Skip to content

Commit 71365c0

Browse files
authored
[CIR][NFC] Fix CIR build after CharUnits change (#161580)
My previous attempt to fix this missed one case.
1 parent 9a30ada commit 71365c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ void CIRRecordLowering::lowerUnion() {
824824
appendPaddingBytes(layoutSize - getSize(storageType));
825825

826826
// Set packed if we need it.
827-
if (layoutSize % getAlignment(storageType))
827+
if (!layoutSize.isMultipleOf(getAlignment(storageType)))
828828
packed = true;
829829
}
830830

0 commit comments

Comments
 (0)