[llvm] [InlineAsm] wrap ConstraintCode in enum class NFC (PR #66003)

Bill Wendling via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 11 22:19:24 PDT 2023


================
@@ -383,9 +385,10 @@ SDNode *CSKYDAGToDAGISel::createGPRPairNode(EVT VT, SDValue V0, SDValue V1) {
 }
 
 bool CSKYDAGToDAGISel::SelectInlineAsmMemoryOperand(
-    const SDValue &Op, unsigned ConstraintID, std::vector<SDValue> &OutOps) {
+    const SDValue &Op, const InlineAsm::ConstraintCode ConstraintID,
+    std::vector<SDValue> &OutOps) {
   switch (ConstraintID) {
-  case InlineAsm::Constraint_m:
+  case InlineAsm::ConstraintCode::m:
----------------
bwendling wrote:

Same here, re if-then.

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


More information about the llvm-commits mailing list