[all-commits] [llvm/llvm-project] 21ee27: [Clang] Issue an error when an atomic builtin is c...
Hendrik Hübner via All-commits
all-commits at lists.llvm.org
Mon May 27 06:49:50 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 21ee27877a87185199d150f9a49f2d3337bad86e
https://github.com/llvm/llvm-project/commit/21ee27877a87185199d150f9a49f2d3337bad86e
Author: Hendrik Hübner <117831077+HendrikHuebner at users.noreply.github.com>
Date: 2024-05-27 (Mon, 27 May 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaChecking.cpp
M clang/test/Sema/atomic-ops.c
Log Message:
-----------
[Clang] Issue an error when an atomic builtin is called with a pointer to a zero-size object (#91057)
When an atomic builtin is called with a pointer to an object of size
zero, an arithmetic exception gets thrown because there is a modulo
operation with the objects size in codegen.
Diagnose this in sema instead.
Fixes #90330.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list