aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/ThreadSafetyCommon.cpp
diff options
context:
space:
mode:
authorDavid Truby <david@truby.dev>2023-09-19 15:00:04 +0100
committerGitHub <noreply@github.com>2023-09-19 15:00:04 +0100
commit5f476b80e3d472f672f5f6a719eebe2c0aadf52c (patch)
tree27a8069ab94c63028a4738ffac0bf404d9d02469 /clang/lib/Analysis/ThreadSafetyCommon.cpp
parent00ecef906b4ef9d82befa3b96af5b456930af003 (diff)
downloadllvm-5f476b80e3d472f672f5f6a719eebe2c0aadf52c.zip
llvm-5f476b80e3d472f672f5f6a719eebe2c0aadf52c.tar.gz
llvm-5f476b80e3d472f672f5f6a719eebe2c0aadf52c.tar.bz2
[flang] Add comdats to functions with linkonce linkage (#66516)
This fixes a bug where functions generated by the MLIR Math dialect, for example ipowi, would fail to link with link.exe on Windows due to having linkonce linkage but no associated comdat. Adding the comdat on ELF also allows linkers to perform better garbage collection in the binary. Simply adding comdats to all functions with this linkage type should also cover future cases where linkonce or linkonce_odr functions might be necessary.
Diffstat (limited to 'clang/lib/Analysis/ThreadSafetyCommon.cpp')
0 files changed, 0 insertions, 0 deletions