forked from OSchip/llvm-project
[ObjectYAML] Fix lifetime issue in dumpDebugLines
Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66901 llvm-svn: 370289
This commit is contained in:
parent
342197e6fc
commit
db751c3778
|
@ -557,21 +557,21 @@ DWARF:
|
|||
#CHECK: SubOpcode: DW_LNE_set_address
|
||||
#CHECK: Data: 4294971216
|
||||
#CHECK: - Opcode: 0x14
|
||||
#CHECK: Data: 4294971216
|
||||
#CHECK: Data: 0
|
||||
#CHECK: - Opcode: DW_LNS_set_column
|
||||
#CHECK: Data: 3
|
||||
#CHECK: - Opcode: DW_LNS_set_prologue_end
|
||||
#CHECK: Data: 3
|
||||
#CHECK: Data: 0
|
||||
#CHECK: - Opcode: DW_LNS_const_add_pc
|
||||
#CHECK: Data: 3
|
||||
#CHECK: Data: 0
|
||||
#CHECK: - Opcode: 0xBB
|
||||
#CHECK: Data: 3
|
||||
#CHECK: Data: 0
|
||||
#CHECK: - Opcode: 0xBB
|
||||
#CHECK: Data: 3
|
||||
#CHECK: Data: 0
|
||||
#CHECK: - Opcode: DW_LNS_advance_pc
|
||||
#CHECK: Data: 11
|
||||
#CHECK: - Opcode: DW_LNS_extended_op
|
||||
#CHECK: ExtLen: 1
|
||||
#CHECK: SubOpcode: DW_LNE_end_sequence
|
||||
#CHECK: Data: 11
|
||||
#CHECK: Data: 0
|
||||
#CHECK: ...
|
||||
|
|
|
@ -287,7 +287,7 @@ void dumpDebugLines(DWARFContext &DCtx, DWARFYAML::Data &Y) {
|
|||
const uint64_t LineEnd =
|
||||
LineTableLength + *StmtOffset + SizeOfPrologueLength;
|
||||
while (Offset < LineEnd) {
|
||||
DWARFYAML::LineTableOpcode NewOp;
|
||||
DWARFYAML::LineTableOpcode NewOp = {};
|
||||
NewOp.Opcode = (dwarf::LineNumberOps)LineData.getU8(&Offset);
|
||||
if (NewOp.Opcode == 0) {
|
||||
auto StartExt = Offset;
|
||||
|
|
Loading…
Reference in New Issue