[ThinLTO] Look through aliases when computing hash keys
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 4 Dec 2018 00:02:33 +0000 (00:02 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 4 Dec 2018 00:02:33 +0000 (00:02 +0000)
commitcf5ecb1adb67b6884d332255b31b7dd303457691
tree57c36e4220c8cd58d96bd7e89e6e694980c4a4c6
parentf5d1b6413f4f9a160e030b1a467be0aee7dbfafc
[ThinLTO] Look through aliases when computing hash keys

Without this, we don't consider types used by aliasees in our cache key.
This caused issues when using the same cache for thin-linking the same
TU with different sets of virtual call candidates for a virtual call
inside of a constructor. That's sort of a mouthful. :)

Differential Revision: https://reviews.llvm.org/D55060

llvm-svn: 348216
llvm/lib/LTO/LTO.cpp
llvm/test/ThinLTO/X86/cache-typeid-resolutions.ll