[DWARF] check whether the DIE is valid before querying for information
authorPaul Semel <semelpaul@gmail.com>
Wed, 3 Apr 2019 17:13:45 +0000 (17:13 +0000)
committerPaul Semel <semelpaul@gmail.com>
Wed, 3 Apr 2019 17:13:45 +0000 (17:13 +0000)
commit0c27bc2e1fe3bda1be12063bdc65ca5a9ca398c6
treef63802afa33bbf004853753251f6b9f6e04f6a05
parent1de15f6f336dba6e26c18c224d1b53ba617f57f0
[DWARF] check whether the DIE is valid before querying for information

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

llvm-svn: 357607
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/test/DebugInfo/dwarfdump-bad-lookup-address.test [new file with mode: 0644]