File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ C/C++ Language Potentially Breaking Changes
44
44
45
45
- Some old-style offsetof idioms like ``((int)(&(((struct S *)0)->field))) `` are treated
46
46
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)
49
50
50
51
C++ Specific Potentially Breaking Changes
51
52
-----------------------------------------
You can’t perform that action at this time.
0 commit comments