summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SCCP.cpp
diff options
context:
space:
mode:
authorBob Haarman <llvm@inglorion.net>2016-12-05 22:44:00 +0000
committerBob Haarman <llvm@inglorion.net>2016-12-05 22:44:00 +0000
commita5b4358956135e2aa747d7dfca4d361ebf99e99d (patch)
tree4d8f6b707d36857f15be8163b17fc5a7e80e24e5 /llvm/lib/Transforms/Scalar/SCCP.cpp
parent317dcc3f2f37c95619a4db9c6d4c084983fdf7ba (diff)
downloadbcm5719-llvm-a5b4358956135e2aa747d7dfca4d361ebf99e99d.tar.gz
bcm5719-llvm-a5b4358956135e2aa747d7dfca4d361ebf99e99d.zip
[pdb] handle missing pdb streams more gracefully
Summary: The code we use to read PDBs assumed that streams we ask it to read exist, and would read memory outside a vector and crash if this wasn't the case. This would, for example, cause llvm-pdbdump to crash on PDBs generated by lld. This patch handles such cases more gracefully: the PDB reading code in LLVM now reports errors when asked to get a stream that is not present, and llvm-pdbdump will report missing streams and continue processing streams that are present. Reviewers: ruiu, zturner Subscribers: thakis, amccarth Differential Revision: https://reviews.llvm.org/D27325 llvm-svn: 288722
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud