mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 23:43:50 +00:00
There is no need to emit source location info for DW_TAG_pointer_type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89487 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a58a04921d
commit
1f37b5b3af
@ -929,7 +929,7 @@ void DwarfDebug::ConstructTypeDIE(CompileUnit *DW_Unit, DIE &Buffer,
|
||||
AddUInt(&Buffer, dwarf::DW_AT_byte_size, 0, Size);
|
||||
|
||||
// Add source line info if available and TyDesc is not a forward declaration.
|
||||
if (!DTy.isForwardDecl())
|
||||
if (!DTy.isForwardDecl() && Tag != dwarf::DW_TAG_pointer_type)
|
||||
AddSourceLine(&Buffer, &DTy);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user