Revert "DebugInfo: Ensure that all debug location scope chains from instructions...
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index cb404760182c91033189d7537661dfccd71a1f81..7c7f1c6ff5e288cd37ad546d7c5ae09848243f77 100644 (file)
@@ -788,7 +788,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.