diff options
| author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2015-07-13 11:52:14 +0000 |
|---|---|---|
| committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2015-07-13 11:52:14 +0000 |
| commit | 73263d72d38366012a32f053b2412b3c37622a56 (patch) | |
| tree | bd37a387f6d4738fe8afc652441e617619149ba2 | |
| parent | 4dd430f2b51332effcdecbb496e81e418b779de6 (diff) | |
| download | bcm5719-llvm-73263d72d38366012a32f053b2412b3c37622a56.tar.gz bcm5719-llvm-73263d72d38366012a32f053b2412b3c37622a56.zip | |
Update comment
As noticed by David Majnemer, update an out-of-date comment in
CGClass.cpp after the r241916 commit.
llvm-svn: 242021
| -rw-r--r-- | clang/lib/CodeGen/CGClass.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp index e29a22eb505..09a7c802dfb 100644 --- a/clang/lib/CodeGen/CGClass.cpp +++ b/clang/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; |

