@@ -935,7 +935,6 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool EnableExperimentalExtension,
935
935
936
936
// The canonical order specified in ISA manual.
937
937
// Ref: Table 22.1 in RISC-V User-Level ISA V2.2
938
- StringRef StdExts = AllStdExts;
939
938
char Baseline = Arch[4 ];
940
939
941
940
// First letter should be 'e', 'i' or 'g'.
@@ -951,7 +950,6 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool EnableExperimentalExtension,
951
950
if (Arch.size () > 5 && isDigit (Arch[5 ]))
952
951
return createStringError (errc::invalid_argument,
953
952
" version not supported for 'g'" );
954
- StdExts = StdExts.drop_front (4 );
955
953
break ;
956
954
}
957
955
@@ -1001,11 +999,11 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool EnableExperimentalExtension,
1001
999
Exts = Exts.drop_front (ConsumeLength);
1002
1000
Exts.consume_front (" _" );
1003
1001
1004
- std::vector<std::string> SplittedExts ;
1005
- if (auto E = splitExtsByUnderscore (Exts, SplittedExts ))
1002
+ std::vector<std::string> SplitExts ;
1003
+ if (auto E = splitExtsByUnderscore (Exts, SplitExts ))
1006
1004
return std::move (E);
1007
1005
1008
- for (auto &Ext : SplittedExts ) {
1006
+ for (auto &Ext : SplitExts ) {
1009
1007
StringRef CurrExt = Ext;
1010
1008
while (!CurrExt.empty ()) {
1011
1009
if (AllStdExts.contains (CurrExt.front ())) {
0 commit comments