mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[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
c4d7a12724
commit
88ec345e4b
@ -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
Block a user