]> granicus.if.org Git - clang/commitdiff
Update comment
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 13 Jul 2015 11:52:14 +0000 (11:52 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 13 Jul 2015 11:52:14 +0000 (11:52 +0000)
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

lib/CodeGen/CGClass.cpp

index e29a22eb505db06977424a5f20a524f743bf021d..09a7c802dfb43a568c2969aeb8eddc9081bd551b 100644 (file)
@@ -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;