From: Ulrich Weigand Date: Mon, 13 Jul 2015 11:52:14 +0000 (+0000) Subject: Update comment X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6b4ddb4d7b507e0eb0a127fb6aa9556abc01409;p=clang Update comment 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 --- diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp index e29a22eb50..09a7c802df 100644 --- a/lib/CodeGen/CGClass.cpp +++ b/lib/CodeGen/CGClass.cpp @@ -917,11 +917,7 @@ namespace { 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;