[all-commits] [llvm/llvm-project] 63a82d: [C11] Allow casting to an _Atomic-qualified type
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Thu Apr 20 07:24:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 63a82dd4eb0c23dbd4277a5ce2d5bfeda836aa64
https://github.com/llvm/llvm-project/commit/63a82dd4eb0c23dbd4277a5ce2d5bfeda836aa64
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2023-04-20 (Thu, 20 Apr 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaCast.cpp
M clang/test/Sema/atomic-expr.c
Log Message:
-----------
[C11] Allow casting to an _Atomic-qualified type
We were failing to strip off atomic qualification when forming the cast
destination type, but properly stripping off cvr qualification. Now we
accept atomic, qualified, or unqualified destination types.
Note: the semantics of the cast still drop the qualifier, so such a
cast does not result in an atomic rvalue.
Fixes https://github.com/llvm/llvm-project/issues/39596
More information about the All-commits
mailing list