[llvm-dwarfdump] --gdb-index: fix uninitialized TuListOffset
authorFangrui Song <maskray@google.com>
Wed, 19 Jun 2019 13:51:29 +0000 (13:51 +0000)
committerFangrui Song <maskray@google.com>
Wed, 19 Jun 2019 13:51:29 +0000 (13:51 +0000)
commit102b1efd5325de188b06b0725a673c902f351dad
tree3bf087efc656411aafcbc5a5fb205901e1b0ae49
parent405037c4e62a9fcd5485c4e1f05b61683e4c2737
[llvm-dwarfdump] --gdb-index: fix uninitialized TuListOffset

The test only checks the existence of the `Types CU list` line.
Unfortunately I can't make a better test because
{gcc,clang} -fuse-ld={lld,gold} --gdb-index do not give me a non-empty types CU list.

Reviewed By: ikudrin

Differential Revision: https://reviews.llvm.org/D63537

llvm-svn: 363800
llvm/lib/DebugInfo/DWARF/DWARFGdbIndex.cpp
llvm/test/DebugInfo/dwarfdump-dump-gdbindex.test