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

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Thu Oct 1 14:09:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4140f0744fb2deccb74e77282e23ff731f67821b
      https://github.com/llvm/llvm-project/commit/4140f0744fb2deccb74e77282e23ff731f67821b
  Author: Alexandre Ganea <alexandre.ganea at ubisoft.com>
  Date:   2020-10-01 (Thu, 01 Oct 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




More information about the All-commits mailing list