[PATCH] D64872: [WebAssembly] Fix bug handling of comdat functions in init array.

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 17 10:28:26 PDT 2019


sbc100 created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google, dschuff.
Herald added a project: LLVM.

This is a follow up on rL362769 <https://reviews.llvm.org/rL362769>.  That comdat.ll test was previously
GC'ing the __wasm_call_ctors functions.  Once that function gets
included it depends on all the init functions which revealed this bug.

Fixes: https://github.com/emscripten-core/emscripten/issues/8981


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64872

Files:
  lld/test/wasm/Inputs/comdat1.ll
  lld/test/wasm/Inputs/comdat2.ll
  lld/test/wasm/comdats.ll
  lld/wasm/InputFiles.cpp
  lld/wasm/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64872.210366.patch
Type: text/x-patch
Size: 5356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190717/964759d6/attachment.bin>


More information about the llvm-commits mailing list