diff options
| author | Florian Hahn <florian.hahn@arm.com> | 2017-12-20 11:32:43 +0000 |
|---|---|---|
| committer | Florian Hahn <florian.hahn@arm.com> | 2017-12-20 11:32:43 +0000 |
| commit | 3cfdaa30e28ddd35290fe319a2d2f903977d4233 (patch) | |
| tree | d190e5b297fa9e7d95e2f1e0108a56130c940dfd /llvm/lib/MC/MCValue.cpp | |
| parent | 75ce852abe1bdd49fda09489da0545530e817640 (diff) | |
| download | bcm5719-llvm-3cfdaa30e28ddd35290fe319a2d2f903977d4233.tar.gz bcm5719-llvm-3cfdaa30e28ddd35290fe319a2d2f903977d4233.zip | |
[TargetParser] Check size before accessing architecture version.
Summary:
This fixes a crash when invalid -march options like `armv` are provided.
Based on a patch by Will Lovett.
Reviewers: rengolin, samparker, mcrosier
Reviewed By: samparker
Subscribers: aemerson, kristof.beyls, llvm-commits
Differential Revision: https://reviews.llvm.org/D41429
llvm-svn: 321166
Diffstat (limited to 'llvm/lib/MC/MCValue.cpp')
0 files changed, 0 insertions, 0 deletions

