[llvm] [LLVM][TableGen] Minor cleanup in CGIOperandList (PR #142721)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 24 11:02:27 PDT 2025


================
@@ -1712,11 +1712,11 @@ void AsmMatcherInfo::buildInstructionOperandReference(MatchableInfo *II,
   MatchableInfo::AsmOperand *Op = &II->AsmOperands[AsmOpIdx];
 
   // Map this token to an operand.
-  unsigned Idx;
-  if (!Operands.hasOperandNamed(OperandName, Idx))
+  std::optional<unsigned> MayBeIdx = Operands.findOperandNamed(OperandName);
----------------
jurahul wrote:

Done.

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


More information about the llvm-commits mailing list