diff options
author | Brock Wyma <brock.wyma@intel.com> | 2018-02-01 20:37:38 +0000 |
---|---|---|
committer | Brock Wyma <brock.wyma@intel.com> | 2018-02-01 20:37:38 +0000 |
commit | 4536c1f5695be17d31d2f73556c2c06f30e4f4eb (patch) | |
tree | 511f788865c548fa7f0d55a18ed625533e01716a /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 351e9f3a739d8609048c3406b1bc7ddc90e0d391 (diff) | |
download | bcm5719-llvm-4536c1f5695be17d31d2f73556c2c06f30e4f4eb.tar.gz bcm5719-llvm-4536c1f5695be17d31d2f73556c2c06f30e4f4eb.zip |
[CodeView] Class record member counts should include base classes and ...
Increment the field list member count for base classes and virtual base
classes.
Differential Revision: https://reviews.llvm.org/D41874
llvm-svn: 324000
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index e616b6341c5..f1749fb6915 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -1970,6 +1970,7 @@ CodeViewDebug::lowerRecordFieldList(const DICompositeType *Ty) { VBTableIndex); ContinuationBuilder.writeMemberType(VBCR); + MemberCount++; } else { assert(I->getOffsetInBits() % 8 == 0 && "bases must be on byte boundaries"); @@ -1977,6 +1978,7 @@ CodeViewDebug::lowerRecordFieldList(const DICompositeType *Ty) { getTypeIndex(I->getBaseType()), I->getOffsetInBits() / 8); ContinuationBuilder.writeMemberType(BCR); + MemberCount++; } } |