[llvm] [TableGen] Bug fix for tied optional operands resolution (PR #83588)

Alfie Richards via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 07:00:12 PDT 2024


================
@@ -1986,9 +1986,9 @@ emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
   }
   CvtOS << "  assert(Kind < CVT_NUM_SIGNATURES && \"Invalid signature!\");\n";
   CvtOS << "  const uint8_t *Converter = ConversionTable[Kind];\n";
-  CvtOS << "  unsigned OpIdx;\n";
   CvtOS << "  Inst.setOpcode(Opcode);\n";
   CvtOS << "  for (const uint8_t *p = Converter; *p; p += 2) {\n";
+  CvtOS << "    unsigned OpIdx;\n";
----------------
AlfieRichardsArm wrote:

Done

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


More information about the llvm-commits mailing list