mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 07:59:57 +00:00
Array element size does not match array size but array is not a bitfield.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86043 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d48d6106e
commit
c416d3b25d
@ -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
Block a user