summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp2
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;
OpenPOWER on IntegriCloud