]> granicus.if.org Git - clang/commit
CodeGen: _Atomic(_Complex) shouldn't crash
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 14 Feb 2015 01:48:17 +0000 (01:48 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 14 Feb 2015 01:48:17 +0000 (01:48 +0000)
commit212af641f2b71dbc372b3cfb283b332116c68b26
treeb79898a5b0d2e64f247809db17b4f7ed53658a9b
parent1fc307f60cc61c65138624c49a702ac572acad45
CodeGen: _Atomic(_Complex) shouldn't crash

We could be a little kinder if we did a compare-exchange loop instead of
an atomic-load/store pair.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229212 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprComplex.cpp
test/CodeGen/atomic_ops.c