From c6b4ddb4d7b507e0eb0a127fb6aa9556abc01409 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 13 Jul 2015 11:52:14 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGClass.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; -- 2.40.0