diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-03-02 15:41:47 -0500 |
---|---|---|
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-03-02 15:42:33 -0500 |
commit | 7e77cf473ac9d8f8b65db017d660892f1c8f4b75 (patch) | |
tree | 7d68c41d3867d91007e2f5e01b02ebd3d858f77b /llvm/lib/Support/VersionTuple.cpp | |
parent | c4a9d976c139f4dc7241809aa965fbc5355314fc (diff) | |
download | llvm-7e77cf473ac9d8f8b65db017d660892f1c8f4b75.zip llvm-7e77cf473ac9d8f8b65db017d660892f1c8f4b75.tar.gz llvm-7e77cf473ac9d8f8b65db017d660892f1c8f4b75.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Support/VersionTuple.cpp')
0 files changed, 0 insertions, 0 deletions