[PATCH] D43947: [WebAssembly] Add assertion for init function signature

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 1 09:26:05 PST 2018


ruiu 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});
----------------
... init func: " + toString(Sym)


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D43947





More information about the llvm-commits mailing list