aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-11 03:09:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-11 03:09:50 +0000
commitc9f2d2426db8ea833e540eeb26ac3e25f1741e4a (patch)
treeba5e0e9c04cc6ab34e133d9ce22bebe28e995b30
parent6ae593cd1381ab2f6aff6eb1309a1a7b5270c8c6 (diff)
downloadexternal_llvm-c9f2d2426db8ea833e540eeb26ac3e25f1741e4a.zip
external_llvm-c9f2d2426db8ea833e540eeb26ac3e25f1741e4a.tar.gz
external_llvm-c9f2d2426db8ea833e540eeb26ac3e25f1741e4a.tar.bz2
Fix -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86794 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index e7e596d..3f26360 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -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!");