[llvm] Revert "[NFC][MC] Removed unused switch case in `emitCATTR`" (PR #152929)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 10 09:50:35 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mc

Author: Abhishek Kaushik (abhishek-kaushik22)

<details>
<summary>Changes</summary>

Reverts llvm/llvm-project#<!-- -->152907

This is causing some build failures.

---
Full diff: https://github.com/llvm/llvm-project/pull/152929.diff


1 Files Affected:

- (modified) llvm/lib/MC/MCAsmInfoGOFF.cpp (+2) 


``````````diff
diff --git a/llvm/lib/MC/MCAsmInfoGOFF.cpp b/llvm/lib/MC/MCAsmInfoGOFF.cpp
index d35020429e346..0a5d1927b1a22 100644
--- a/llvm/lib/MC/MCAsmInfoGOFF.cpp
+++ b/llvm/lib/MC/MCAsmInfoGOFF.cpp
@@ -71,6 +71,8 @@ static void emitCATTR(raw_ostream &OS, StringRef Name, GOFF::ESDRmode Rmode,
     case GOFF::ESD_RMODE_64:
       OS << "64";
       break;
+    case GOFF::ESD_RMODE_None:
+      break;
     }
     OS << ')';
   }

``````````

</details>


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


More information about the llvm-commits mailing list