diff options
| author | Jordan Rupprecht <rupprecht@google.com> | 2018-10-11 17:55:11 +0000 |
|---|---|---|
| committer | Jordan Rupprecht <rupprecht@google.com> | 2018-10-11 17:55:11 +0000 |
| commit | 1845645b0d689ce4562fec7ed7e7d975f0be987e (patch) | |
| tree | ee00cc0ac2803ac93219ef085f24ab9552dcfa1e /llvm/lib/CodeGen/AsmPrinter | |
| parent | 480a5075ad527eb8fc73a78d9eda25b07e2884b7 (diff) | |
| download | bcm5719-llvm-1845645b0d689ce4562fec7ed7e7d975f0be987e.tar.gz bcm5719-llvm-1845645b0d689ce4562fec7ed7e7d975f0be987e.zip | |
[llvm-nm] Fix crash when running with --print-armap on corrupt archives.
error() in llvm-nm intentionally does not return so that the callee can move on to future files/slices. When printing the archive map, this is not currently handled (the caller assumes that error() returns), so processing continues despite there being an error.
Also, change one return to a break, so that symbols can be printed even if the archive map is corrupt.
llvm-svn: 344268
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
0 files changed, 0 insertions, 0 deletions

