================ @@ -42,6 +42,11 @@ Potentially Breaking Changes C/C++ Language Potentially Breaking Changes ------------------------------------------- +- Some old-style offsetof idioms like ``((int)(&(((struct S *)0)->field)))`` are treated ---------------- efriedma-quic wrote:
I think it would be more helpful for users if the release note starts out by saying "we're optimizing null pointers more aggressively", then describes the flags you can use to disable the optimization, then describes the specific patterns we're special-casing. https://github.com/llvm/llvm-project/pull/130734 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits