summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2015-07-13 11:52:14 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2015-07-13 11:52:14 +0000
commitc6b4ddb4d7b507e0eb0a127fb6aa9556abc01409 (patch)
treee255fa147cef3349f3753aea79014e7e3d416346 /lib
parent83475c76f1e311fabf708dd17734917108dddaf0 (diff)
downloadclang-c6b4ddb4d7b507e0eb0a127fb6aa9556abc01409.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/CGClass.cpp6
1 files changed, 1 insertions, 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;