This is an archive of the discontinued LLVM Phabricator instance.

[LLD][COFF] Fix crash with /summary and PCH input files
ClosedPublic

Authored by aganea on Oct 1 2020, 10:16 AM.

Details

Summary

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.

+@hans since it is a regression from 10.0, but I think we should save it for 11.0.1

Diff Detail

Event Timeline

aganea created this revision.Oct 1 2020, 10:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 1 2020, 10:16 AM
aganea requested review of this revision.Oct 1 2020, 10:16 AM
rnk accepted this revision.Oct 1 2020, 1:05 PM

lgtm

This revision is now accepted and ready to land.Oct 1 2020, 1:05 PM
This revision was automatically updated to reflect the committed changes.