diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-06 10:23:27 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-06 10:23:27 -0800 |
commit | 651b8e1bdac39036f5c3658966e55e6ba5897072 (patch) | |
tree | e51a8a9297afa336e4267a4e7aaea2770b4bc1b3 /src | |
parent | ec70dbcb17d8acace08e8abe9cc0ea30e0c825d1 (diff) | |
download | binaryen-651b8e1bdac39036f5c3658966e55e6ba5897072.tar.gz binaryen-651b8e1bdac39036f5c3658966e55e6ba5897072.tar.bz2 binaryen-651b8e1bdac39036f5c3658966e55e6ba5897072.zip |
addExports properly
Diffstat (limited to 'src')
-rw-r--r-- | src/asm2wasm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index 3baf09329..92cef7be9 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -483,7 +483,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) { auto export_ = allocator.alloc<Export>(); export_->name = key; export_->value = value[1]->getIString(); - wasm.exports.push_back(export_); + wasm.addExport(export_); } } } |