diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index 5914a8afd..a66322eb4 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -273,12 +273,13 @@ public: CallIndirect* makeCallIndirect(const Name table, Expression* target, const T& args, - Signature sig, + HeapType heapType, bool isReturn = false) { + assert(heapType.isSignature()); auto* call = wasm.allocator.alloc<CallIndirect>(); call->table = table; - call->sig = sig; - call->type = sig.results; + call->heapType = heapType; + call->type = heapType.getSignature().results; call->target = target; call->operands.set(args); call->isReturn = isReturn; |