summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-09-13 17:09:20 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-09-13 17:09:20 +0000
commitd067c8ed59ccd8a74f266c9fd06c9cfbdef834a1 (patch)
treecca978a90ae9bf4c12fca52b073fbc137c0e3557 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent9707aa74d6641078e00e44a7885b195113d006c6 (diff)
downloadbcm5719-llvm-d067c8ed59ccd8a74f266c9fd06c9cfbdef834a1.tar.gz
bcm5719-llvm-d067c8ed59ccd8a74f266c9fd06c9cfbdef834a1.zip
ThinLTO: Correctly follow aliasee references when dead stripping.
We were previously handling aliases during dead stripping by adding the aliased global's "original name" GUID to the worklist. This will lead to incorrect behaviour if the global has local linkage because the original name GUID will not correspond to the global's GUID in the summary. Because an alias is just another name for the global that it references, there is no need to mark the referenced global as used, or to follow references from any other copies of the global. So all we need to do is to follow references from the aliasee's summary instead of the alias. Differential Revision: https://reviews.llvm.org/D37789 llvm-svn: 313157
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud