[all-commits] [llvm/llvm-project] 3e4a16: [llvm/DebugInfo] Fix invalid verifier error for DW...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Apr 28 10:25:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e4a16d2cbfe147399342bc34f81ecd6b980718d
      https://github.com/llvm/llvm-project/commit/3e4a16d2cbfe147399342bc34f81ecd6b980718d
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp

  Log Message:
  -----------
  [llvm/DebugInfo] Fix invalid verifier error for DWARF5

We unconditionally compared the DW_AT_ranges offset to the length of the
.debug_ranges section. For DWARF5 we should look at the debug_rnglists
section instead.

Differential revision: https://reviews.llvm.org/D78971




More information about the All-commits mailing list