[PATCH] D43947: [WebAssembly] Add assertion for init function signature
Nicholas Wilson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 2 06:49:20 PST 2018
ncw marked an inline comment as done.
ncw added inline comments.
================
Comment at: wasm/Writer.cpp:899
+ if (*Sym->getFunctionType() != WasmSignature{{}, WASM_TYPE_NORESULT})
+ error("invalid signature for init func");
+ InitFunctions.emplace_back(WasmInitEntry{Sym, F.Priority});
----------------
ruiu wrote:
> ... init func: " + toString(Sym)
Fixed.
Repository:
rL LLVM
https://reviews.llvm.org/D43947
More information about the llvm-commits
mailing list