[llvm] [WebAssembly] validate `table.grow` correctly (PR #80437)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 2 07:23:45 PST 2024
================
@@ -401,7 +411,7 @@ bool WebAssemblyAsmTypeCheck::typeCheck(SMLoc ErrorLoc, const MCInst &Inst,
for (unsigned I = II.getNumOperands(); I > II.getNumDefs(); I--) {
const auto &Op = II.operands()[I - 1];
if (Op.OperandType == MCOI::OPERAND_REGISTER) {
- auto VT = WebAssembly::regClassToValType(Op.RegClass);
+ wasm::ValType VT = WebAssembly::regClassToValType(Op.RegClass);
----------------
sbc100 wrote:
Why this change? Maybe revert his line if its not needed?
https://github.com/llvm/llvm-project/pull/80437
More information about the llvm-commits
mailing list