about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-07-18 12:12:53 -0700
committerAlex Crichton <alex@alexcrichton.com>2018-07-18 12:12:53 -0700
commite08fcbbd8d241ab68d72dc8b288ca55b8c1114fe (patch)
treeeddeeb70161b48a90aa6b3e2e79d9395830df24d /src/rustllvm/RustWrapper.cpp
parent12ed235adc62e63b16bb4f715b143c37a5efa00d (diff)
downloadrust-e08fcbbd8d241ab68d72dc8b288ca55b8c1114fe.tar.gz
rust-e08fcbbd8d241ab68d72dc8b288ca55b8c1114fe.zip
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