diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-05-02 17:20:56 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-05-02 17:20:56 +0000 |
commit | eb39741c0b4ab018d8e416cac82336e7a292e212 (patch) | |
tree | 22713a690863962536518a8e4176764aef1b84e2 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | d47ba853fc0a1e5149f18ee3f5fdf59699169eb5 (diff) | |
download | bcm5719-llvm-eb39741c0b4ab018d8e416cac82336e7a292e212.tar.gz bcm5719-llvm-eb39741c0b4ab018d8e416cac82336e7a292e212.zip |
More rule enforcement of zero bitfields for ms_struct.
llvm-svn: 130696
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 6ce49b5f756..f2e1c024dd0 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -628,7 +628,8 @@ CollectRecordFields(const RecordDecl *record, llvm::DIFile tunit, FieldDecl *field = *I; if (IsMsStruct) { // Zero-length bitfields following non-bitfield members are ignored - if (CGM.getContext().ZeroBitfieldFollowsNonBitfield((field), LastFD)) { + if (CGM.getContext().ZeroBitfieldFollowsNonBitfield((field), LastFD) || + CGM.getContext().ZeroBitfieldFollowsBitfield((field), LastFD)) { --fieldNo; continue; } |