efriedma-quic wrote: We have a rule that relaxes the alignment when a pointer refers to a known declaration: https://github.com/dtcxzyw/llvm-project/blob/25b6bb9d82098c9668cd63d07a080989cd4713ed/clang/lib/CodeGen/CGExpr.cpp#L1417 . This isn't new, it's just being exposed in more cases.
I don't think we want to make this more aggressive for normal codegen, but it's probably fine to make ubsan more strict. https://github.com/llvm/llvm-project/pull/152575 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
