mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Revert r210221 again, due to a crash Richard Smith has provided involving self-hosting LLVM with libc++.
Test case coming, once I reduce it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210236 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a986ec4de
commit
0bc7690e34
@ -1784,8 +1784,7 @@ std::unique_ptr<DIE> DwarfUnit::constructVariableDIEImpl(const DbgVariable &DV,
|
|||||||
// Define variable debug information entry.
|
// Define variable debug information entry.
|
||||||
auto VariableDie = make_unique<DIE>(DV.getTag());
|
auto VariableDie = make_unique<DIE>(DV.getTag());
|
||||||
DbgVariable *AbsVar = DV.getAbstractVariable();
|
DbgVariable *AbsVar = DV.getAbstractVariable();
|
||||||
if (AbsVar) {
|
if (AbsVar && AbsVar->getDIE()) {
|
||||||
assert(AbsVar->getDIE());
|
|
||||||
addDIEEntry(*VariableDie, dwarf::DW_AT_abstract_origin, *AbsVar->getDIE());
|
addDIEEntry(*VariableDie, dwarf::DW_AT_abstract_origin, *AbsVar->getDIE());
|
||||||
} else {
|
} else {
|
||||||
if (!Name.empty())
|
if (!Name.empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user