summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-27 17:53:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-27 17:53:58 -0700
commitf0a4f15dc27ffff9505503a8168854b7662b2657 (patch)
tree9ed1b23b55c86f8fa1aee285bfdde9d47c2f1ae8 /src
parent3e99796818f8a774e9c88a5d04aadfe12846ee36 (diff)
downloadbinaryen-f0a4f15dc27ffff9505503a8168854b7662b2657.tar.gz
binaryen-f0a4f15dc27ffff9505503a8168854b7662b2657.tar.bz2
binaryen-f0a4f15dc27ffff9505503a8168854b7662b2657.zip
cleanups following review comments
Diffstat (limited to 'src')
-rw-r--r--src/asm2wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index 9e7bc7979..f905d2047 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -222,7 +222,7 @@ private:
void noteImportedFunctionCall(Ref ast, WasmType resultType, AsmData *asmData, CallImport* call) {
assert(ast[0] == CALL && ast[1][0] == NAME);
IString importName = ast[1][1]->getIString();
- std::unique_ptr<FunctionType> type = make_unique<FunctionType>();
+ auto type = make_unique<FunctionType>();
type->name = IString((std::string("type$") + importName.str).c_str(), false); // TODO: make a list of such types
type->result = resultType;
Ref args = ast[2];