[llvm] [WebAssembly] Print type signature and table for call_indirect (PR #179120)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 12 20:04:18 PST 2026
================
@@ -59,17 +68,14 @@ void WebAssemblyInstPrinter::printInst(const MCInst *MI, uint64_t Address,
OS << "\t";
OS << getMnemonic(*MI).first;
OS << " ";
-
- assert(MI->getNumOperands() == 2);
- const unsigned TypeOperand = 0;
- const unsigned TableOperand = 1;
- if (MI->getOperand(TableOperand).isExpr()) {
+ if (MI->getOperand(TableOperand).isExpr() &&
+ STI.checkFeatures("+reference-types")) {
printOperand(MI, TableOperand, OS);
OS << ", ";
- } else {
- assert(MI->getOperand(TableOperand).getImm() == 0);
----------------
ParkHanbum wrote:
sorry I missed it
https://github.com/llvm/llvm-project/pull/179120
More information about the llvm-commits
mailing list