diff options
| author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-04-16 21:31:18 +0000 |
|---|---|---|
| committer | Tom Stellard <tstellar@redhat.com> | 2020-04-29 15:23:44 -0700 |
| commit | 9cf9cf2a398ce70d9187afa59db6500e7a1f2cd0 (patch) | |
| tree | 068048f5923c031f9a09626c40f604346b6f545b /llvm/test/Bitcode/thinlto-function-summary-originalnames.ll | |
| parent | efeb1cead5b58c9f7792a5280af9fea9a70e44b2 (diff) | |
| download | bcm5719-llvm-9cf9cf2a398ce70d9187afa59db6500e7a1f2cd0.tar.gz bcm5719-llvm-9cf9cf2a398ce70d9187afa59db6500e7a1f2cd0.zip | |
[Clang] Fix Hurd toolchain test on a two-stage build with ThinLTO
A two-stage ThinLTO build previously failed the clang/test/Driver/hurd.c test because of a static_cast in "tools::gnutools::Linker::ConstructJob()" which wrongly converted an instance of "clang::driver::toolchains::Hurd" into that of "clang::driver::toolchains::Linux". ThinLTO would later devirtualize the "ToolChain.getDynamicLinker(Args)" call and use "Linux::getDynamicLinker()" instead, causing the test to generate a wrong "-dynamic-linker" linker flag (/lib/ld-linux.so.2 instead of /lib/ld.so)
Fixes PR45061.
Differential Revision: https://reviews.llvm.org/D75373
(cherry picked from commit 7e77cf473ac9d8f8b65db017d660892f1c8f4b75)
Diffstat (limited to 'llvm/test/Bitcode/thinlto-function-summary-originalnames.ll')
0 files changed, 0 insertions, 0 deletions

