[clang] [CodeGen][TBAA] Fix aliasing for char-derived pointer types (PR #200392)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 1 05:17:38 PDT 2026
PimpalkarNeha wrote:
> > in C these char types may alias any type
>
> The standard doesn't say this.
> > in C these char types may alias any type
>
> The standard doesn't say this.
Thanks for the note. You're right — the standard does not say that in those words. I meant that a store through char*** and a load through int*** can refer to the same memory, so those accesses must not be treated as non-aliasing in TBAA.
I've updated the description.
https://github.com/llvm/llvm-project/pull/200392
More information about the cfe-commits
mailing list