[clang] [TBAA] Don't emit pointer-tbaa for void pointers. (PR #122116)

Sam James via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 28 03:49:11 PST 2025


================
@@ -2486,6 +2486,23 @@ are listed below.
 
     $ clang -fuse-ld=lld -Oz -Wl,--icf=safe -fcodegen-data-use code.cc
 
+Strict Aliasing
+---------------
+
+Clang by default applies C/C++'s strict aliasing rules during optimizations. In
----------------
thesamesam wrote:

I believe this isn't the case for `clang-cl`.

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


More information about the cfe-commits mailing list