From 91242b788a9a1182f1e67d63e89e68be1502c839 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 30 Oct 2018 23:45:27 +0000 Subject: 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 --- llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') 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; -- cgit v1.2.3