summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index 94230b747..c3148d9c6 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -1594,6 +1594,9 @@ public:
auto parentValue = parent.getSingleValue();
auto newSupers = std::make_unique<RttSupers>(parentValue.getRttSupers());
newSupers->push_back(parentValue.type);
+ if (curr->fresh) {
+ newSupers->back().makeFresh();
+ }
return Literal(std::move(newSupers), curr->type);
}
Flow visitStructNew(StructNew* curr) {