summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-ir-builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-ir-builder.cpp')
-rw-r--r--src/wasm/wasm-ir-builder.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wasm/wasm-ir-builder.cpp b/src/wasm/wasm-ir-builder.cpp
index 14b9046ef..aace2b1ac 100644
--- a/src/wasm/wasm-ir-builder.cpp
+++ b/src/wasm/wasm-ir-builder.cpp
@@ -1390,7 +1390,12 @@ Result<> IRBuilder::makeRethrow(Index label) {
return Ok{};
}
-// Result<> IRBuilder::makeThrowRef() {}
+Result<> IRBuilder::makeThrowRef() {
+ ThrowRef curr;
+ CHECK_ERR(visitThrowRef(&curr));
+ push(builder.makeThrowRef(curr.exnref));
+ return Ok{};
+}
Result<> IRBuilder::makeTupleMake(uint32_t arity) {
TupleMake curr(wasm.allocator);