[clang] [Clang][CodeGen] Preserve alignment information for pointer arithmetics (PR #152575)

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 12 22:31:40 PST 2025


vitalybuka wrote:

CC @fmayer

After this patch we have a change in Ubsan:

before: https://godbolt.org/z/E1rG51cc1
after: https://godbolt.org/z/rj47nMbno
gcc: https://godbolt.org/z/hxbaPhTrM


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


More information about the cfe-commits mailing list