[llvm] [clang] [Clang] Emit TBAA info for enums in C (PR #73326)
Paul Walker via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 7 02:34:47 PST 2023
================
@@ -6376,13 +6376,26 @@ aliases a memory access with an access tag ``(BaseTy2, AccessTy2,
Offset2)`` if either ``(BaseTy1, Offset1)`` is reachable from ``(Base2,
Offset2)`` via the ``Parent`` relation or vice versa.
+In C an enum will be compatible with an underlying integer type that is large
+enough to hold all enumerated values. In most cases this will be an ``int``,
+which is the default when no type is specified. However, if an ``int`` is not
----------------
paulwalker-arm wrote:
I don't think this information belongs in the LangRef, especially as it doesn't add any value to the underlying description of what the metadata represents.
https://github.com/llvm/llvm-project/pull/73326
More information about the cfe-commits
mailing list