Files
clang-p2996/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
Reid Kleckner 5475834737 [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
2025-03-19 09:47:32 -07:00

48 KiB