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:
Devang Patel 2009-11-20 21:05:37 +00:00
parent a58a04921d
commit 1f37b5b3af

View File

@ -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);
}