Do not construct DIE for already processed MDNode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107237 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2010-06-30 01:40:11 +00:00
parent 170c41f3d5
commit 90e19aad7d

View File

@ -2766,7 +2766,8 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
}
}
}
constructScopeDIE(*AI);
if (ProcessedSPNodes.count((*AI)->getScopeNode()) == 0)
constructScopeDIE(*AI);
}
DIE *CurFnDIE = constructScopeDIE(CurrentFnDbgScope);