mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-01 12:24:24 +00:00
Check invalid debug info for enums. This may happen when underlyng enum is optimized away. Eventually DwarfChecker will clean this up during llvm verification stage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83655 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -950,8 +950,10 @@ void DwarfDebug::ConstructTypeDIE(CompileUnit *DW_Unit, DIE &Buffer,
|
|||||||
for (unsigned i = 0, N = Elements.getNumElements(); i < N; ++i) {
|
for (unsigned i = 0, N = Elements.getNumElements(); i < N; ++i) {
|
||||||
DIE *ElemDie = NULL;
|
DIE *ElemDie = NULL;
|
||||||
DIEnumerator Enum(Elements.getElement(i).getNode());
|
DIEnumerator Enum(Elements.getElement(i).getNode());
|
||||||
ElemDie = ConstructEnumTypeDIE(DW_Unit, &Enum);
|
if (!Enum.isNull()) {
|
||||||
Buffer.AddChild(ElemDie);
|
ElemDie = ConstructEnumTypeDIE(DW_Unit, &Enum);
|
||||||
|
Buffer.AddChild(ElemDie);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user