Skip to content

Commit f9c7cf9

Browse files
committed
[Clang] Update release notes. NFC.
1 parent e4fe119 commit f9c7cf9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ C/C++ Language Potentially Breaking Changes
4444

4545
- Some old-style offsetof idioms like ``((int)(&(((struct S *)0)->field)))`` are treated
4646
as UB. To avoid breaking existing code, ``inbounds`` flags will not be set for such patterns.
47-
However, it is still highly recommended to use the UB-free builtin ``__builtin_offsetof``.
48-
(#GH130734)
47+
However, it is still highly recommended to use the UB-free macro ``offsetof`` or clang builtin
48+
function ``__builtin_offsetof``. It is also possible to use ``-fwrapv-pointer`` or
49+
``-fno-delete-null-pointer-checks`` to make this behavior well-defined. (#GH130734, #GH130742)
4950

5051
C++ Specific Potentially Breaking Changes
5152
-----------------------------------------

0 commit comments

Comments
 (0)