Fix -Asserts warning.

llvm-svn: 86794
This commit is contained in:
Daniel Dunbar 2009-11-11 03:09:50 +00:00
parent c7b9f5e762
commit 75b4d3562c
1 changed files with 1 additions and 0 deletions

View File

@ -1565,6 +1565,7 @@ DIE *DwarfDebug::ConstructVariableDIE(DbgVariable *DV,
DIScope DS(Scope->getScopeNode());
DISubprogram InlinedSP = getDISubprogram(DS.getNode());
DIE *&OriginSPDIE = ModuleCU->getDieMapSlotFor(InlinedSP.getNode());
(void) OriginSPDIE;
assert (OriginSPDIE && "Unable to find Origin DIE for the SP!");
DIE *AbsDIE = DV->getAbstractVariable()->getDIE();
assert (AbsDIE && "Unable to find Origin DIE for the Variable!");