Skip to content

Commit

Permalink
Add missing copy in Copier::visitPush (#2295)
Browse files Browse the repository at this point in the history
It seems this was missing in #2289.
  • Loading branch information
aheejin authored Aug 12, 2019
1 parent da59a15 commit 69ad1e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ir/ExpressionManipulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ flexibleCopy(Expression* original, Module& wasm, CustomCopier custom) {
Expression* visitUnreachable(Unreachable* curr) {
return builder.makeUnreachable();
}
Expression* visitPush(Push* curr) { return builder.makePush(curr->value); }
Expression* visitPush(Push* curr) {
return builder.makePush(copy(curr->value));
}
Expression* visitPop(Pop* curr) { return builder.makePop(curr->type); }
};

Expand Down

0 comments on commit 69ad1e8

Please sign in to comment.