[DWARFYAML][debug_info] Fix array index out of bounds error
authorXing GUO <higuoxing@gmail.com>
Sat, 20 Jun 2020 06:25:56 +0000 (14:25 +0800)
committerXing GUO <higuoxing@gmail.com>
Sat, 20 Jun 2020 07:08:24 +0000 (15:08 +0800)
commit677034959285b9250c7b562d2602594719581463
treeb6585b7e24ac3fa74c1c031bdfd0a447e7b8bf38
parentc721bc081eabd818990d92be4cb85cf7150b5468
[DWARFYAML][debug_info] Fix array index out of bounds error

This patch is trying to fix the array index out of bounds error. I observed it in (https://reviews.llvm.org/harbormaster/unit/view/99638/).

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D82139
llvm/lib/ObjectYAML/DWARFVisitor.cpp
llvm/test/tools/yaml2obj/ELF/DWARF/debug-info.yaml