Unverified Commit 21ee2787 authored by Hendrik Hübner's avatar Hendrik Hübner Committed by GitHub
Browse files

[Clang] Issue an error when an atomic builtin is called with a pointer to a...

[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.
parent 6a197b35
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment