[llvm] 326667d - [RISCV] Merge variable declaration with first assignment. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 22:00:48 PDT 2024
Author: Craig Topper
Date: 2024-04-29T21:59:35-07:00
New Revision: 326667d727546dad0ce9315aa93a3da698c7c71c
URL: https://github.com/llvm/llvm-project/commit/326667d727546dad0ce9315aa93a3da698c7c71c
DIFF: https://github.com/llvm/llvm-project/commit/326667d727546dad0ce9315aa93a3da698c7c71c.diff
LOG: [RISCV] Merge variable declaration with first assignment. NFC
Added:
Modified:
llvm/lib/TargetParser/RISCVISAInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/TargetParser/RISCVISAInfo.cpp b/llvm/lib/TargetParser/RISCVISAInfo.cpp
index 20182fb06037c2..24b774314fea84 100644
--- a/llvm/lib/TargetParser/RISCVISAInfo.cpp
+++ b/llvm/lib/TargetParser/RISCVISAInfo.cpp
@@ -398,11 +398,10 @@ RISCVISAInfo::parseFeatures(unsigned XLen,
for (auto &Feature : Features) {
StringRef ExtName = Feature;
- bool Experimental = false;
assert(ExtName.size() > 1 && (ExtName[0] == '+' || ExtName[0] == '-'));
bool Add = ExtName[0] == '+';
ExtName = ExtName.drop_front(1); // Drop '+' or '-'
- Experimental = stripExperimentalPrefix(ExtName);
+ bool Experimental = stripExperimentalPrefix(ExtName);
auto ExtensionInfos = Experimental
? ArrayRef(SupportedExperimentalExtensions)
: ArrayRef(SupportedExtensions);
More information about the llvm-commits
mailing list