mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Ignore malformed global variable debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81055 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1482,6 +1482,10 @@ void DwarfDebug::ConstructCompileUnit(MDNode *N) {
|
|||||||
|
|
||||||
void DwarfDebug::ConstructGlobalVariableDIE(MDNode *N) {
|
void DwarfDebug::ConstructGlobalVariableDIE(MDNode *N) {
|
||||||
DIGlobalVariable DI_GV(N);
|
DIGlobalVariable DI_GV(N);
|
||||||
|
|
||||||
|
// If debug information is malformed then ignore it.
|
||||||
|
if (DI_GV.Verify() == false)
|
||||||
|
return;
|
||||||
|
|
||||||
// Check for pre-existence.
|
// Check for pre-existence.
|
||||||
DIE *&Slot = ModuleCU->getDieMapSlotFor(DI_GV.getNode());
|
DIE *&Slot = ModuleCU->getDieMapSlotFor(DI_GV.getNode());
|
||||||
|
Reference in New Issue
Block a user