about summary refs log tree commit diff
path: root/src/test/run-make/wasm-custom-sections-opt/foo.js
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-15/+0
2018-12-25Remove licensesMark Rousskov-10/+0
2018-07-18rustc: Work around an upstream wasm ThinLTO bugAlex Crichton-0/+25
This commit implements a workaround for an [upstream LLVM bug][1] where custom sections were accidentally duplicated amongst codegen units when ThinLTO passes were performed. This is due to the fact that custom sections for wasm are stored as metadata nodes which are automatically imported into modules when ThinLTO happens. The fix here is to forcibly delete the metadata node from imported modules before LLVM has a chance to try to copy it over. [1]: https://bugs.llvm.org/show_bug.cgi?id=38184