summaryrefslogtreecommitdiff
path: root/src/wasm-linker.cpp
diff options
context:
space:
mode:
authorAlon Zakai (kripken) <alonzakai@gmail.com>2017-01-31 14:17:39 -0800
committerAlon Zakai (kripken) <alonzakai@gmail.com>2017-01-31 14:17:39 -0800
commite8d6188499260d599b2002d1b17405220d22869a (patch)
tree98a64ee2505e8c9b2f9dad39ff4fd15f21478e9d /src/wasm-linker.cpp
parentabb48f7460b26e14076fd34ed1f7274ab3a949cc (diff)
downloadbinaryen-e8d6188499260d599b2002d1b17405220d22869a.tar.gz
binaryen-e8d6188499260d599b2002d1b17405220d22869a.tar.bz2
binaryen-e8d6188499260d599b2002d1b17405220d22869a.zip
use MixedArena in asm.js ast
Diffstat (limited to 'src/wasm-linker.cpp')
-rw-r--r--src/wasm-linker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wasm-linker.cpp b/src/wasm-linker.cpp
index 757fc88ca..c2fc00562 100644
--- a/src/wasm-linker.cpp
+++ b/src/wasm-linker.cpp
@@ -82,11 +82,12 @@ void Linker::layout() {
// behavior.
for (auto* call : f.second) {
auto type = call->type;
- auto operands = std::move(call->operands);
+ ExpressionList operands(out.wasm.allocator);
+ operands.swap(call->operands);
auto target = call->target;
CallImport* newCall = ExpressionManipulator::convert<Call, CallImport>(call, out.wasm.allocator);
newCall->type = type;
- newCall->operands = std::move(operands);
+ newCall->operands.swap(operands);
newCall->target = target;
}
}