Skip to content

Commit 670ab42

Browse files
committed
[Clang][CodeGen] Add release note.
1 parent 06cd8a7 commit 670ab42

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ Potentially Breaking Changes
4242
C/C++ Language Potentially Breaking Changes
4343
-------------------------------------------
4444

45+
- Some old-style offsetof idioms like ``((int)(&(((struct S *)0)->field)))`` are treated
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)
49+
4550
C++ Specific Potentially Breaking Changes
4651
-----------------------------------------
4752

0 commit comments

Comments
 (0)