As noticed by David Majnemer, update an out-of-date comment in
CGClass.cpp after the r241916 commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242021
91177308-0d34-0410-b5e6-
96231b3b80d8
CGF.getTypes().getCGRecordLayout(FirstField->getParent());
const CGBitFieldInfo &BFInfo = RL.getBitFieldInfo(FirstField);
// FirstFieldOffset is not appropriate for bitfields,
- // it won't tell us what the storage offset should be and thus might not
- // be properly aligned.
- //
- // Instead calculate the storage offset using the offset of the field in
- // the struct type.
+ // we need to use the storage offset instead.
FirstByteOffset = CGF.getContext().toBits(BFInfo.StorageOffset);
} else {
FirstByteOffset = FirstFieldOffset;