Skip to content

Commit 326667d

Browse files
committed
[RISCV] Merge variable declaration with first assignment. NFC
1 parent 62d6560 commit 326667d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/TargetParser/RISCVISAInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,10 @@ RISCVISAInfo::parseFeatures(unsigned XLen,
398398

399399
for (auto &Feature : Features) {
400400
StringRef ExtName = Feature;
401-
bool Experimental = false;
402401
assert(ExtName.size() > 1 && (ExtName[0] == '+' || ExtName[0] == '-'));
403402
bool Add = ExtName[0] == '+';
404403
ExtName = ExtName.drop_front(1); // Drop '+' or '-'
405-
Experimental = stripExperimentalPrefix(ExtName);
404+
bool Experimental = stripExperimentalPrefix(ExtName);
406405
auto ExtensionInfos = Experimental
407406
? ArrayRef(SupportedExperimentalExtensions)
408407
: ArrayRef(SupportedExtensions);

0 commit comments

Comments
 (0)