forked from OSchip/llvm-project
Array element size does not match array size but array is not a bitfield.
llvm-svn: 86043
This commit is contained in:
parent
16f60b9216
commit
5d3fe2fc77
|
@ -1138,7 +1138,9 @@ DIE *DwarfDebug::CreateMemberDIE(CompileUnit *DW_Unit, const DIDerivedType &DT){
|
|||
AddSourceLine(MemberDie, &DT);
|
||||
|
||||
uint64_t Size = DT.getSizeInBits();
|
||||
uint64_t FieldSize = DT.getOriginalTypeSize();
|
||||
uint64_t FieldSize = Size;
|
||||
if (DT.getTypeDerivedFrom().getTag() != dwarf::DW_TAG_array_type)
|
||||
FieldSize = DT.getOriginalTypeSize();
|
||||
|
||||
if (Size != FieldSize) {
|
||||
// Handle bitfield.
|
||||
|
|
Loading…
Reference in New Issue