This avoids crashing when a user tries to dump a pdb with the -native option.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I don't have any problems with this, so feel free to commit. But I'm curious how you ran into this. Did you find a PDB with no compilands, functions, or data? If so, I'm curious how it was generated.
Comment Actions
Yes, at least some of these changes are necessary to stop llvm-pdbdump from crashing today.
Here is a reproducer (atleast for us):
llvm-pdbdump.exe pretty -all -native foo.pdb