forked from OSchip/llvm-project
Fix memory leak in 4318028cd2
This commit is contained in:
parent
2c7cc5fd20
commit
85b7b5625a
|
@ -100,9 +100,9 @@ void DwarfCompileUnit::addLabelAddress(DIE &Die, dwarf::Attribute Attribute,
|
|||
addPoolOpAddress(*Loc, Label);
|
||||
addBlock(Die, Attribute, dwarf::DW_FORM_exprloc, Loc);
|
||||
} else
|
||||
Die.addValue(
|
||||
DIEValueAllocator, Attribute, dwarf::DW_FORM_LLVM_addrx_offset,
|
||||
new DIEAddrOffset(DD->getAddressPool().getIndex(Base), Label, Base));
|
||||
Die.addValue(DIEValueAllocator, Attribute, dwarf::DW_FORM_LLVM_addrx_offset,
|
||||
new (DIEValueAllocator) DIEAddrOffset(
|
||||
DD->getAddressPool().getIndex(Base), Label, Base));
|
||||
}
|
||||
|
||||
void DwarfCompileUnit::addLocalLabelAddress(DIE &Die,
|
||||
|
|
Loading…
Reference in New Issue