summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-12-21 11:10:24 -0800
committerGitHub <noreply@github.com>2016-12-21 11:10:24 -0800
commite5704f392404b1f69d762217b89e3b8736277f08 (patch)
treee7f97e4b5504dc4f3ac50882e9e6bcc1e2b572e5 /src
parente44343a76d96a836e7f0abc0779d774e90621674 (diff)
downloadbinaryen-e5704f392404b1f69d762217b89e3b8736277f08.tar.gz
binaryen-e5704f392404b1f69d762217b89e3b8736277f08.tar.bz2
binaryen-e5704f392404b1f69d762217b89e3b8736277f08.zip
fix copy of call_indirect bug (#860)
Diffstat (limited to 'src')
-rw-r--r--src/ast_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast_utils.h b/src/ast_utils.h
index 3396f5ed5..1a5b2c83f 100644
--- a/src/ast_utils.h
+++ b/src/ast_utils.h
@@ -324,7 +324,7 @@ struct ExpressionManipulator {
return ret;
}
Expression* visitCallIndirect(CallIndirect *curr) {
- auto* ret = builder.makeCallIndirect(curr->fullType, curr->target, {}, curr->type);
+ auto* ret = builder.makeCallIndirect(curr->fullType, copy(curr->target), {}, curr->type);
for (Index i = 0; i < curr->operands.size(); i++) {
ret->operands.push_back(copy(curr->operands[i]));
}