]> granicus.if.org Git - clang/commit
Merging r286129:
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 15 Nov 2016 14:15:56 +0000 (14:15 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 15 Nov 2016 14:15:56 +0000 (14:15 +0000)
commit9d07107b9da9afd672aad16598ffcf6143643deb
tree236daa54b2cdc41e85ba9eb15e905ac8a9edad19
parentd1273f478205760b942216d2320144c0c161fa28
Merging r286129:
------------------------------------------------------------------------
r286129 | abataev | 2016-11-07 18:15:02 +0000 (Mon, 07 Nov 2016) | 8 lines

[OPENMP] Fixed codegen for __real/__imag expressions in atomic
constructs.

For __real/__imag unary expressions clang emits lvalue with the
associated type from the original complex expression, but not the
underlying builtin integer or float type. This causes crash in codegen
for atomic constructs, if __real/__imag expression are used in atomic
  constructs.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_39@286965 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
test/OpenMP/atomic_write_codegen.c