comm
diff --git a/src/wasm-ir-builder.h b/src/wasm-ir-builder.h index 380b75b..d907595 100644 --- a/src/wasm-ir-builder.h +++ b/src/wasm-ir-builder.h
@@ -84,8 +84,7 @@ Index defaultLabel); // Unlike Builder::makeCall, this assumes the function already exists. [[nodiscard]] Result<> makeCall(Name func, bool isReturn); - [[nodiscard]] Result<> - makeCallIndirect(Name func, HeapType heapType, bool isReturn); + // [[nodiscard]] Result<> makeCallIndirect(); [[nodiscard]] Result<> makeLocalGet(Index local); [[nodiscard]] Result<> makeLocalSet(Index local); [[nodiscard]] Result<> makeLocalTee(Index local);
diff --git a/src/wasm/wasm-ir-builder.cpp b/src/wasm/wasm-ir-builder.cpp index 0557a28..964676f 100644 --- a/src/wasm/wasm-ir-builder.cpp +++ b/src/wasm/wasm-ir-builder.cpp
@@ -702,15 +702,7 @@ return Ok{}; } -Result<> -IRBuilder::makeCallIndirect(Name table, HeapType heapType, bool isReturn) { - CallIndirect curr(wasm.allocator); - curr.table = table; - CHECK_ERR(visitCallIndirect(&curr)); - push(builder.makeCallIndirect( - curr.table, curr.target, curr.operands, curr.heapType, isReturn)); - return Ok{}; -} +// Result<> IRBuilder::makeCallIndirect() {} Result<> IRBuilder::makeLocalGet(Index local) { push(builder.makeLocalGet(local, func->getLocalType(local)));
diff --git a/test/lit/passes/outlining.wast b/test/lit/passes/outlining.wast index 1efb544..ad712b3 100644 --- a/test/lit/passes/outlining.wast +++ b/test/lit/passes/outlining.wast
@@ -511,27 +511,30 @@ (table funcref) (func (call_indirect - (param i32) + (param i32 i32) (i32.const 0) - (i32.const 0) + (i32.const 1) + (i32.const 2) ) (call_indirect - (param i32) + (param i32 i32) (i32.const 0) - (i32.const 0) + (i32.const 1) + (i32.const 2) ) ) ) ;; CHECK: (type $0 (func)) -;; CHECK: (type $1 (func (param i32))) +;; CHECK: (type $1 (func (param i32 i32))) ;; CHECK: (table $0 0 funcref) ;; CHECK: (func $outline$ (type $0) ;; CHECK-NEXT: (call_indirect $0 (type $1) ;; CHECK-NEXT: (i32.const 0) -;; CHECK-NEXT: (i32.const 0) +;; CHECK-NEXT: (i32.const 1) +;; CHECK-NEXT: (i32.const 2) ;; CHECK-NEXT: ) ;; CHECK-NEXT: )