summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorHendrik Hübner <117831077+HendrikHuebner@users.noreply.github.com>2024-05-27 15:49:28 +0200
committerGitHub <noreply@github.com>2024-05-27 15:49:28 +0200
commit21ee27877a87185199d150f9a49f2d3337bad86e (patch)
treeaa19296b782eb3b2d837b531edc20394a2ce24d3 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent6a197b35db0805e77d5103382b5b516ca0c2db1d (diff)
[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.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions