[llvm] [SanitizerCoverage] Don't let noipa affect comdat selection (PR #228182)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 4 17:32:48 PDT 2026


================
@@ -775,8 +775,10 @@ GlobalVariable *ModuleSanitizerCoverage::CreateFunctionLocalArrayInSection(
       *CurModule, ArrayTy, false, GlobalVariable::PrivateLinkage,
       Constant::getNullValue(ArrayTy), "__sancov_gen_");
 
+  // noipa doesn't affect linkage, so it is ignored when deciding on a comdat.
----------------
MaskRay wrote:

 #228959 will improve the comment.

https://github.com/llvm/llvm-project/pull/228182


More information about the llvm-commits mailing list