[all-commits] [llvm/llvm-project] b09176: [LLD][COFF] Fix crash with /summary and PCH input ...

Tom Stellard via All-commits all-commits at lists.llvm.org
Wed Dec 9 11:13:57 PST 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: b091768e60e6807ae3806acaba1cbc9b1c96b388
      https://github.com/llvm/llvm-project/commit/b091768e60e6807ae3806acaba1cbc9b1c96b388
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2020-12-09 (Wed, 09 Dec 2020)

  Changed paths:
    M lld/COFF/DebugTypes.cpp
    A lld/test/COFF/Inputs/precomp2-a.yaml
    A lld/test/COFF/Inputs/precomp2.yaml
    A lld/test/COFF/precomp-summary-fail.test

  Log Message:
  -----------
  [LLD][COFF] Fix crash with /summary and PCH input files

Before this patch /summary was crashing with some .PCH.OBJ files, because tpiMap[srcIdx++] was reading at the wrong location. When the TpiSource depends on a .PCH.OBJ file, the types should be offset by the previously merged PCH.OBJ set of indices.

Differential Revision: https://reviews.llvm.org/D88678

(cherry picked from commit 4140f0744fb2deccb74e77282e23ff731f67821b)




More information about the All-commits mailing list