diff options
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r-- | src/wasm-s-parser.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 2f1a1bc1b..633d8329e 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -1094,10 +1094,10 @@ private: Expression* makeCallIndirect(Element& s) { auto ret = allocator.alloc<CallIndirect>(); IString type = s[1]->str(); - ret->fullType = wasm.checkFunctionType(type); - if (!ret->fullType) throw ParseException("invalid call_indirect type", s.line, s.col); - assert(ret->fullType); - ret->type = ret->fullType->result; + auto* fullType = wasm.checkFunctionType(type); + if (!fullType) throw ParseException("invalid call_indirect type", s.line, s.col); + ret->fullType = fullType->name; + ret->type = fullType->result; ret->target = parseExpression(s[2]); parseCallOperands(s, 3, ret); return ret; |