forked from OSchip/llvm-project
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
This commit is contained in:
parent
f4239c7707
commit
72c3aa39b7
|
@ -1784,8 +1784,7 @@ std::unique_ptr<DIE> DwarfUnit::constructVariableDIEImpl(const DbgVariable &DV,
|
|||
// Define variable debug information entry.
|
||||
auto VariableDie = make_unique<DIE>(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())
|
||||
|
|
Loading…
Reference in New Issue