[PATCH] D66901: [ObjectYAML] Fix lifetime issue in dumpDebugLines
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 12:55:47 PDT 2019
vitalybuka created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
vitalybuka added a reviewer: beanz.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66901
Files:
llvm/tools/obj2yaml/dwarf2yaml.cpp
Index: llvm/tools/obj2yaml/dwarf2yaml.cpp
===================================================================
--- llvm/tools/obj2yaml/dwarf2yaml.cpp
+++ llvm/tools/obj2yaml/dwarf2yaml.cpp
@@ -286,8 +286,8 @@
const uint64_t LineEnd =
LineTableLength + *StmtOffset + SizeOfPrologueLength;
+ DWARFYAML::LineTableOpcode NewOp = {};
while (Offset < LineEnd) {
- DWARFYAML::LineTableOpcode NewOp;
NewOp.Opcode = (dwarf::LineNumberOps)LineData.getU8(&Offset);
if (NewOp.Opcode == 0) {
auto StartExt = Offset;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66901.217704.patch
Type: text/x-patch
Size: 570 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190828/4e905148/attachment.bin>
More information about the llvm-commits
mailing list