[all-commits] [llvm/llvm-project] adb290: [Sema][SVE] Reject atomic sizeless types
rsandifo-arm via All-commits
all-commits at lists.llvm.org
Thu Mar 12 10:27:49 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: adb290d97482aa9311ee4b4b5917a0f2ece55b30
https://github.com/llvm/llvm-project/commit/adb290d97482aa9311ee4b4b5917a0f2ece55b30
Author: Richard Sandiford <richard.sandiford at arm.com>
Date: 2020-03-12 (Thu, 12 Mar 2020)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaType.cpp
M clang/test/Sema/sizeless-1.c
M clang/test/SemaCXX/sizeless-1.cpp
Log Message:
-----------
[Sema][SVE] Reject atomic sizeless types
It would be difficult to guarantee atomicity for sizeless types,
so the SVE ACLE makes atomic sizeless types invalid. As it happens,
we already rejected them before the patch, but for the wrong reason:
error: _Atomic cannot be applied to type 'svint8_t' (aka '__SVInt8_t')
which is not trivially copyable
The SVE types should be treated as trivially copyable; a later
patch fixes that.
Differential Revision: https://reviews.llvm.org/D75734
More information about the All-commits
mailing list