[AArch64TargetParser] reinstate assert for optional
authorTomas Matheson <tomas.matheson@arm.com>
Mon, 6 Mar 2023 12:59:03 +0000 (12:59 +0000)
committerTomas Matheson <tomas.matheson@arm.com>
Tue, 7 Mar 2023 10:42:42 +0000 (10:42 +0000)
commit0fcd4177063a0e3feedc9900f68abe534e74fd3b
tree8504e4b20826abdc1bbd24bf071c7e3729786c68
parentedca49cfb766ef4f6e665b13808976d119bc1f1d
[AArch64TargetParser] reinstate assert for optional

D145206 changed value() to value_or(0), removing the assert that checks
that there is a minor version. Add it back explicitly.

Differential Revision: https://reviews.llvm.org/D145371
llvm/include/llvm/TargetParser/AArch64TargetParser.h