about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-23 13:42:23 +0000
committerbors <bors@rust-lang.org>2018-07-23 13:42:23 +0000
commit5665a2d36778693ca19215540a518ccf04eb0b1a (patch)
tree783a29af3cb65ecdaeefe2f62046424862164ea8 /src/rustllvm/RustWrapper.cpp
parent970102f24c7e7d088917b4da2eca3fd1e067efe8 (diff)
parente08fcbbd8d241ab68d72dc8b288ca55b8c1114fe (diff)
downloadrust-5665a2d36778693ca19215540a518ccf04eb0b1a.tar.gz
rust-5665a2d36778693ca19215540a518ccf04eb0b1a.zip
Auto merge of #52506 - alexcrichton:dont-duplicate-wasm-sections, r=michaelwoerister
rustc: Work around an upstream wasm ThinLTO bug

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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions