From: David Blaikie Date: Thu, 5 Jun 2014 02:04:59 +0000 (+0000) Subject: Revert r210221 again, due to a crash Richard Smith has provided involving self-hostin... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72c3aa39b75827105719ef2847270c3898e302f7;p=platform%2Fupstream%2Fllvm.git Revert r210221 again, due to a crash Richard Smith has provided involving self-hosting LLVM with libc++. Test case coming, once I reduce it. llvm-svn: 210236 --- diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index af9344a..49864ea 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1784,8 +1784,7 @@ std::unique_ptr DwarfUnit::constructVariableDIEImpl(const DbgVariable &DV, // Define variable debug information entry. auto VariableDie = make_unique(DV.getTag()); DbgVariable *AbsVar = DV.getAbstractVariable(); - if (AbsVar) { - assert(AbsVar->getDIE()); + if (AbsVar && AbsVar->getDIE()) { addDIEEntry(*VariableDie, dwarf::DW_AT_abstract_origin, *AbsVar->getDIE()); } else { if (!Name.empty())