[llvm] [NFC][AsmMatcherEmitter] Misc code cleanup (PR #157012)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 06:50:47 PDT 2025


================
@@ -2718,8 +2699,7 @@ static void emitGetSubtargetFeatureName(AsmMatcherInfo &Info, raw_ostream &OS) {
      << "static const char *getSubtargetFeatureName(uint64_t Val) {\n";
   if (!Info.SubtargetFeatures.empty()) {
     OS << "  switch(Val) {\n";
-    for (const auto &SF : Info.SubtargetFeatures) {
-      const SubtargetFeatureInfo &SFI = SF.second;
+    for (const auto &[_, SFI] : Info.SubtargetFeatures) {
----------------
s-barannikov wrote:

make_second_range?

https://github.com/llvm/llvm-project/pull/157012


More information about the llvm-commits mailing list