Open efriedma-quic opened 3 months ago
It looks like this is harmless; these don't actually need to match. Probably TableGen can generate an anonymous namespace or something like that to avoid the warning.
@llvm/issue-subscribers-backend-aarch64
Author: Eli Friedman (efriedma-quic)
I guess this & the other bug/warning came from a GCC LTO build? I don't think LLVM has these diagnostics, right?
But I can say that these sort of ODR violations can mess up LLVM's LTO DWARF - it assumes types with the same mangled name are identical, and will pick one at random. So you could have a rather confusing debugging experience from code like this.
When building with -flto -Werror=odr to find possible runtime issues w/ LTO:
Split from #84577 . Originally reported downstream in Gentoo at https://bugs.gentoo.org/926529.