aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2025-03-19 09:47:32 -0700
committerGitHub <noreply@github.com>2025-03-19 09:47:32 -0700
commit5475834737663c0da3c444fcf1c8ab5567c39136 (patch)
treea3b7cff6b509209abd144c351b4d7b87954c9089 /clang/lib/CodeGen/CodeGenModule.cpp
parent39ce99589b05ddd43e5c8b7f89ab5bbfda40d2ce (diff)
downloadllvm-5475834737663c0da3c444fcf1c8ab5567c39136.zip
llvm-5475834737663c0da3c444fcf1c8ab5567c39136.tar.gz
llvm-5475834737663c0da3c444fcf1c8ab5567c39136.tar.bz2
[sancov] Use comdats when one already exists (#131929)
This code avoids adding comdat groups to interposable linkage types (weak, linkonce (non-ODR)) to avoid changing semantics, since comdat elimination happens before weak/strong prevailaing symbol resolution. However, if the function is already in a comdat, we can add to the group without changing the semantics of the linked program. Fixes an issue uncovered in PR #126240
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions