We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ba734 commit 84ff1bdCopy full SHA for 84ff1bd
llvm/lib/TargetParser/RISCVISAInfo.cpp
@@ -449,8 +449,7 @@ RISCVISAInfo::parseFeatures(unsigned XLen,
449
assert(XLen == 32 || XLen == 64);
450
std::unique_ptr<RISCVISAInfo> ISAInfo(new RISCVISAInfo(XLen));
451
452
- for (auto &Feature : Features) {
453
- StringRef ExtName = Feature;
+ for (StringRef ExtName : Features) {
454
assert(ExtName.size() > 1 && (ExtName[0] == '+' || ExtName[0] == '-'));
455
bool Add = ExtName[0] == '+';
456
ExtName = ExtName.drop_front(1); // Drop '+' or '-'
0 commit comments