This is an archive of the discontinued LLVM Phabricator instance.

[TargetParser] Check size before accessing architecture version.
ClosedPublic

Authored by fhahn on Dec 20 2017, 1:33 AM.

Details

Summary

This fixes a crash when invalid -march options like armv are provided.

Based on a patch by Will Lovett.

Diff Detail

Event Timeline

fhahn created this revision.Dec 20 2017, 1:33 AM
samparker accepted this revision.Dec 20 2017, 1:37 AM

Thanks, LGTM.

This revision is now accepted and ready to land.Dec 20 2017, 1:37 AM
fhahn closed this revision.Dec 20 2017, 3:33 AM