File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -615,20 +615,20 @@ void CIRRecordLowering::determinePacked(bool nvBaseType) {
615
615
continue ;
616
616
// If any member falls at an offset that it not a multiple of its alignment,
617
617
// then the entire record must be packed.
618
- if (member.offset % getAlignment (member.data ))
618
+ if (! member.offset . isMultipleOf ( getAlignment (member.data ) ))
619
619
packed = true ;
620
620
if (member.offset < nvSize)
621
621
nvAlignment = std::max (nvAlignment, getAlignment (member.data ));
622
622
alignment = std::max (alignment, getAlignment (member.data ));
623
623
}
624
624
// If the size of the record (the capstone's offset) is not a multiple of the
625
625
// record's alignment, it must be packed.
626
- if (members.back ().offset % alignment)
626
+ if (! members.back ().offset . isMultipleOf ( alignment) )
627
627
packed = true ;
628
628
// If the non-virtual sub-object is not a multiple of the non-virtual
629
629
// sub-object's alignment, it must be packed. We cannot have a packed
630
630
// non-virtual sub-object and an unpacked complete object or vise versa.
631
- if (nvSize % nvAlignment)
631
+ if (! nvSize. isMultipleOf ( nvAlignment) )
632
632
packed = true ;
633
633
// Update the alignment of the sentinel.
634
634
if (!packed)
You can’t perform that action at this time.
0 commit comments