diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-12-21 11:10:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-21 11:10:24 -0800 |
commit | e5704f392404b1f69d762217b89e3b8736277f08 (patch) | |
tree | e7f97e4b5504dc4f3ac50882e9e6bcc1e2b572e5 /src | |
parent | e44343a76d96a836e7f0abc0779d774e90621674 (diff) | |
download | binaryen-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.h | 2 |
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])); } |