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 938434f commit 34310c2Copy full SHA for 34310c2
llvm/lib/TargetParser/RISCVTargetParser.cpp
@@ -150,7 +150,7 @@ getExtensionBitmask(StringRef ExtName) {
150
RISCVExtensionBitmaskTable::ExtensionBitmask;
151
auto *I = llvm::lower_bound(ExtBitmasks, ExtName, LessExtName());
152
153
- if (I != ExtBitmasks.end())
+ if (I != ExtBitmasks.end() && ExtName.equals_insensitive(I->Name))
154
return *I;
155
156
return RISCVExtensionBitmaskTable::RISCVExtensionBitmask();
0 commit comments