Skip to content

Commit 69ad1e8

Browse files
authored
Add missing copy in Copier::visitPush (#2295)
It seems this was missing in #2289.
1 parent da59a15 commit 69ad1e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ir/ExpressionManipulator.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ flexibleCopy(Expression* original, Module& wasm, CustomCopier custom) {
223223
Expression* visitUnreachable(Unreachable* curr) {
224224
return builder.makeUnreachable();
225225
}
226-
Expression* visitPush(Push* curr) { return builder.makePush(curr->value); }
226+
Expression* visitPush(Push* curr) {
227+
return builder.makePush(copy(curr->value));
228+
}
227229
Expression* visitPop(Pop* curr) { return builder.makePop(curr->type); }
228230
};
229231

0 commit comments

Comments
 (0)