Temporarily revert "Don't try to construct debug LexicalScopes hierarchy for function...
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index 5aa2659fb6c5339ff1025e3390ba1af8afa7d190..f78ca2c03b4ec247a29ce4e2ee141318da349244 100644 (file)
@@ -786,7 +786,8 @@ void DwarfDebug::finishVariableDefinitions() {
   for (const auto &Var : ConcreteVariables) {
     DIE *VariableDie = Var->getDIE();
     // FIXME: There shouldn't be any variables without DIEs.
-    assert(VariableDie);
+    if (!VariableDie)
+      continue;
     // FIXME: Consider the time-space tradeoff of just storing the unit pointer
     // in the ConcreteVariables list, rather than looking it up again here.
     // DIE::getUnit isn't simple - it walks parent pointers, etc.