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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm/wasm-ir-builder.cpp b/src/wasm/wasm-ir-builder.cpp
index 7e163fe4e..6445cc3c9 100644
--- a/src/wasm/wasm-ir-builder.cpp
+++ b/src/wasm/wasm-ir-builder.cpp
@@ -661,10 +661,10 @@ Result<> IRBuilder::makeRefEq() {
// Result<> IRBuilder::makeTupleExtract() {}
-Result<> IRBuilder::makeI31New() {
- I31New curr;
- CHECK_ERR(visitI31New(&curr));
- push(builder.makeI31New(curr.value));
+Result<> IRBuilder::makeRefI31() {
+ RefI31 curr;
+ CHECK_ERR(visitRefI31(&curr));
+ push(builder.makeRefI31(curr.value));
return Ok{};
}