Skip to content

Commit 91242b7

Browse files
committed
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
1 parent a834038 commit 91242b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ unsigned DWARFVerifier::verifyDieRanges(const DWARFDie &Die,
414414
// For now, simply elide the range verification for the CU DIEs if we are
415415
// processing an object file.
416416

417-
if (!IsObjectFile || IsMachOObject || Die.getTag() == DW_TAG_subprogram) {
417+
if (!IsObjectFile || IsMachOObject || Die.getTag() != DW_TAG_compile_unit) {
418418
for (auto Range : Ranges) {
419419
if (!Range.valid()) {
420420
++NumErrors;

0 commit comments

Comments
 (0)