File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ struct CIRRecordLowering final {
9292 }
9393
9494 // / Helper function to check if the target machine is BigEndian.
95- bool isBE () const { return astContext.getTargetInfo ().isBigEndian (); }
95+ bool isBigEndian () const { return astContext.getTargetInfo ().isBigEndian (); }
9696
9797 CharUnits bitsToCharUnits (uint64_t bitOffset) {
9898 return astContext.toCharUnitsFromBits (bitOffset);
@@ -789,7 +789,7 @@ void CIRRecordLowering::computeVolatileBitfields() {
789789 // of the type), we first undo that calculation here and redo it once
790790 // the bit-field offset within the new container is calculated.
791791 const unsigned oldOffset =
792- isBE () ? info.storageSize - (info.offset + info.size ) : info.offset ;
792+ isBigEndian () ? info.storageSize - (info.offset + info.size ) : info.offset ;
793793 // Offset to the bit-field from the beginning of the struct.
794794 const unsigned absoluteOffset =
795795 astContext.toBits (info.storageOffset ) + oldOffset;
@@ -811,7 +811,7 @@ void CIRRecordLowering::computeVolatileBitfields() {
811811 continue ;
812812
813813 // Re-adjust offsets for big-endian targets.
814- if (isBE ())
814+ if (isBigEndian ())
815815 offset = storageSize - (offset + info.size );
816816
817817 const CharUnits storageOffset =
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ typedef struct{
4141 volatile unsigned int a : 3 ;
4242 unsigned int : 0 ; // zero-length bit-field force next field to aligned int boundary
4343 volatile unsigned int b : 5 ;
44- }st3 ;
44+ } st3 ;
4545
4646// CIR-LAYOUT: BitFields:[
4747// CIR-LAYOUT-NEXT: <CIRBitFieldInfo name:a offset:0 size:3 isSigned:0 storageSize:8 storageOffset:0 volatileOffset:0 volatileStorageSize:32 volatileStorageOffset:0>
@@ -55,7 +55,7 @@ typedef struct{
5555 volatile unsigned int a : 3 ;
5656 unsigned int z : 2 ;
5757 volatile unsigned int b : 5 ;
58- }st4 ;
58+ } st4 ;
5959
6060// CIR-LAYOUT: BitFields:[
6161// CIR-LAYOUT-NEXT: <CIRBitFieldInfo name:a offset:0 size:3 isSigned:0 storageSize:16 storageOffset:0 volatileOffset:0 volatileStorageSize:32 volatileStorageOffset:0>
You can’t perform that action at this time.
0 commit comments