]> granicus.if.org Git - clang/commit
[OPENMP] Additional processing of 'omp atomic write' directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 28 Nov 2014 07:21:40 +0000 (07:21 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 28 Nov 2014 07:21:40 +0000 (07:21 +0000)
commit424a82d64ece0dca701e87770deb2c4c91835aea
treef949b7434854230094952b084bcbde5c86fb4fcb
parent672481705244a63e11014dbee86820323c2b3896
[OPENMP] Additional processing of 'omp atomic write' directive.
According to OpenMP standard, Section 2.12.6, atomic Construct, '#pragma omp atomic write' is allowed to be used only for expression statements of form 'x = expr;', where x is a lvalue expression and expr is an expression with scalar type. Patch adds checks for it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222913 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaOpenMP.cpp
test/OpenMP/atomic_messages.c
test/OpenMP/atomic_messages.cpp