diff options
author | Martin Storsjö <martin@martin.st> | 2024-03-12 12:32:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 12:32:48 +0200 |
commit | 5a100551d5652da586800c67edd4ccb3b18b10dc (patch) | |
tree | 1262daa11210d25f9deace512e167432a53f6256 /llvm/unittests/Support/KnownBitsTest.cpp | |
parent | 23ffb2bdb96cf5a8eebce86b1ab21acf88979661 (diff) | |
download | llvm-5a100551d5652da586800c67edd4ccb3b18b10dc.zip llvm-5a100551d5652da586800c67edd4ccb3b18b10dc.tar.gz llvm-5a100551d5652da586800c67edd4ccb3b18b10dc.tar.bz2 |
[Analysis] Treat ldexpf() as missing on MinGW (#84748)
The function does exist, but it is a plain wrapper over regular ldexp(),
so there's no benefit in calling it over regular ldexp(). Therefore,
treat it as missing.
This fixes builds of Wine for aarch64 with Clang in mingw mode, which
regressed recently in 8d976c7f20fe8d92fe6f54af411594e15fac25ae. That
commit unlocked transforming calls to ldexp into ldexpf, for some
codepaths within Wine. Wine can use compilers in mingw mode without
the regular mingw runtime libraries, which caused this to fail.
(However, if the transformation to use ldexpf() would have made sense,
the right fix would have been for Wine to provide a similar
ldexpf->ldexp wrapper just like mingw does.)
Diffstat (limited to 'llvm/unittests/Support/KnownBitsTest.cpp')
0 files changed, 0 insertions, 0 deletions