File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
llvm/lib/Target/RISCV/AsmParser Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2823,9 +2823,8 @@ bool RISCVAsmParser::parseDirectiveOption() {
2823
2823
break ;
2824
2824
}
2825
2825
2826
- ArrayRef<SubtargetFeatureKV> KVArray (RISCVFeatureKV);
2827
- auto Ext = llvm::lower_bound (KVArray, Arch);
2828
- if (Ext == KVArray.end () || StringRef (Ext->Key ) != Arch ||
2826
+ auto Ext = llvm::lower_bound (RISCVFeatureKV, Arch);
2827
+ if (Ext == std::end (RISCVFeatureKV) || StringRef (Ext->Key ) != Arch ||
2829
2828
!RISCVISAInfo::isSupportedExtension (Arch)) {
2830
2829
if (isDigit (Arch.back ()))
2831
2830
return Error (
@@ -2858,7 +2857,7 @@ bool RISCVAsmParser::parseDirectiveOption() {
2858
2857
// It is invalid to disable an extension that there are other enabled
2859
2858
// extensions depend on it.
2860
2859
// TODO: Make use of RISCVISAInfo to handle this
2861
- for (auto Feature : KVArray ) {
2860
+ for (auto Feature : RISCVFeatureKV ) {
2862
2861
if (getSTI ().hasFeature (Feature.Value ) &&
2863
2862
Feature.Implies .test (Ext->Value ))
2864
2863
return Error (Loc,
You can’t perform that action at this time.
0 commit comments