diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2018-10-30 23:45:27 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2018-10-30 23:45:27 +0000 |
commit | 91242b788a9a1182f1e67d63e89e68be1502c839 (patch) | |
tree | 6e0ca1d8d4a433c90a7af55761d80ea89f8a2b02 /llvm/lib | |
parent | a83403892ac33484c0a830a21313fdf2473bcd0f (diff) | |
download | bcm5719-llvm-91242b788a9a1182f1e67d63e89e68be1502c839.tar.gz bcm5719-llvm-91242b788a9a1182f1e67d63e89e68be1502c839.zip |
DWARFVerifier: make the verifier more comprehensive for objects
Make the code do what was mentioned in the comment: only skip the CU types.
This enables the lexical blocks to be verified as well.
llvm-svn: 345675
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp index fdb71958cc6..f3b242c47d7 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp @@ -414,7 +414,7 @@ unsigned DWARFVerifier::verifyDieRanges(const DWARFDie &Die, // For now, simply elide the range verification for the CU DIEs if we are // processing an object file. - if (!IsObjectFile || IsMachOObject || Die.getTag() == DW_TAG_subprogram) { + if (!IsObjectFile || IsMachOObject || Die.getTag() != DW_TAG_compile_unit) { for (auto Range : Ranges) { if (!Range.valid()) { ++NumErrors; |