PDBs may not necessarily contain an IPI stream. Handle this case
gracefully.
The test case was verified to work with MS link.exe.
Paths
| Differential D63178
[lld] Fix type server merging with PDBs without IPI stream ClosedPublic Authored by CyberShadow on Jun 11 2019, 5:09 PM.
Details Summary PDBs may not necessarily contain an IPI stream. Handle this case The test case was verified to work with MS link.exe.
Diff Detail
Event TimelineComment Actions lgtm I can apply this and do the requested code golf simplification if you like, but I just wanted to confirm that's OK with you. Thanks for the patch!
This revision is now accepted and ready to land.Jun 12 2019, 2:18 PM Closed by commit rL363213: [lld] Fix type server merging with PDBs without IPI stream (authored by rnk). · Explain WhyJun 12 2019, 3:30 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 204196 lld/COFF/PDB.cpp
lld/test/COFF/Inputs/no-ipi-stream-obj.obj.yaml
lld/test/COFF/Inputs/no-ipi-stream-pdb.pdb.yaml
lld/test/COFF/no-ipi-stream.test
|
Maybe we should have an Optional<pdb::TpiStream &> MaybeIpi variable that we check before passing it into the two mergeIdRecords so we don't have to repeat this error handling code.