[llvm] [NFC][AsmMatcherEmitter] Misc code cleanup (PR #157012)
    Rahul Joshi via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Sep  5 06:54:15 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) {
----------------
jurahul wrote:
Done. Thanks
https://github.com/llvm/llvm-project/pull/157012
    
    
More information about the llvm-commits
mailing list