Files
clang-p2996/clang/lib/CodeGen/CodeGenTBAA.cpp
Florian Hahn 41a0c66f43 [TBAA] Don't emit pointer tbaa for unnamed structs or unions. (#116596)
For unnamed structs or unions, C's compatible types rule applies. Two
compatible types in different compilation units can have different
mangled names, meaning the metadata emitted below would incorrectly mark
them as no-alias. Use AnyPtr for such types in both C and C++, as C and
C++ types may be visible when doing LTO.

PR: https://github.com/llvm/llvm-project/pull/116596
2024-11-21 22:20:27 +00:00

25 KiB