================ ---------------- xakep8 wrote: Helper creates guards for namespace-scope vague-linkage globals, the guard should also inherit globalOp.getGlobalVisibility(). Could we also propagate it here? https://github.com/llvm/llvm-project/pull/228586