]> git.lizzy.rs Git - rust.git/commit
Auto merge of #43612 - michaelwoerister:fix-cgu-hashing, r=eddyb
authorbors <bors@rust-lang.org>
Wed, 2 Aug 2017 11:14:54 +0000 (11:14 +0000)
committerbors <bors@rust-lang.org>
Wed, 2 Aug 2017 11:14:54 +0000 (11:14 +0000)
commit22f256f69e61a0f2ceb7eb842589597f6fe4ce37
tree1217cc20970a766ece338fda537dc7f63470dddf
parent5c385bef7a2429db496f809f2e5042774fe7079b
parentb2c3a413b955ac89be06367f4db7706cbd88dc9c
Auto merge of #43612 - michaelwoerister:fix-cgu-hashing, r=eddyb

incr.comp.: Properly incorporate symbol linkage and visibility into CGU hash.

This PR fixes the way the CGU hash for incr. comp. is computed. The CGU hash represents which `TransItems` are emitted into which codegen unit with which linkage and visibility. Before the new, LLVM-independent symbol internalizer the CGU hash did not accurately contain `TransItem` linkage and visibility because we would not enable symbol internalization in incremental mode anyway. The new internalizer is also run in incremental mode which uncovered the inaccuracy of CGU hashing. Luckily, the fix is rather simple.

r? @eddyb
cc @nikomatsakis