]> granicus.if.org Git - clang/commit
Compute standard conversion sequences for conversions to atomic
authorDouglas Gregor <dgregor@apple.com>
Thu, 12 Apr 2012 17:51:55 +0000 (17:51 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 12 Apr 2012 17:51:55 +0000 (17:51 +0000)
commitf7ecc3016e6309a092493070d071489516b273c0
treef17c06eb66e44d1a8ac8c9e43fabe528ff3ae719
parent99850388609234e01901e316bca6ca6ffbd09337
Compute standard conversion sequences for conversions to atomic
types. The second and third conversions in the sequence are based on
the conversion for the underlying type, so that we get sensible
overloading behavior for, e.g., _Atomic(int) vs. _Atomic(float).

As part of this, actually implement the lvalue-to-rvalue conversion
for atomic types. There is probably a pile of code in SemaExpr that
can now be deleted, but I haven't tracked it down yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154596 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOverload.cpp
test/SemaCXX/atomic-type.cxx