summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/fuzzing/fuzzing.cpp2
-rw-r--r--src/tools/wasm-ctor-eval.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp
index bb3a76766..6e728d3a6 100644
--- a/src/tools/fuzzing/fuzzing.cpp
+++ b/src/tools/fuzzing/fuzzing.cpp
@@ -2099,7 +2099,7 @@ Expression* TranslateToFuzzReader::makeConstBasicRef(Type type) {
// --nominal mode.
static HeapType trivialArray =
HeapType(Array(Field(Field::PackedType::i8, Immutable)));
- return builder.makeArrayInit(trivialArray, {});
+ return builder.makeArrayNewFixed(trivialArray, {});
}
case HeapType::string:
return builder.makeStringConst(std::to_string(upTo(1024)));
diff --git a/src/tools/wasm-ctor-eval.cpp b/src/tools/wasm-ctor-eval.cpp
index 13e2d5767..00bceac8f 100644
--- a/src/tools/wasm-ctor-eval.cpp
+++ b/src/tools/wasm-ctor-eval.cpp
@@ -613,7 +613,7 @@ public:
init = builder.makeStructNew(heapType, args);
} else if (heapType.isArray()) {
// TODO: for repeated identical values, can use ArrayNew
- init = builder.makeArrayInit(heapType, args);
+ init = builder.makeArrayNewFixed(heapType, args);
} else {
WASM_UNREACHABLE("bad gc type");
}