Revert "Reapply "DebugInfo: Ensure that all debug location scope chains from instruct...
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index 8064209ba37c368472bcba445666f354a9e5b068..99e7a272d7fdfa952a623f30cdd997c75d54b258 100644 (file)
@@ -789,7 +789,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.