]> granicus.if.org Git - clang/commit
Be sure to emit lvalue-to-rvalue casts for loads from x-values.
authorJohn McCall <rjmccall@apple.com>
Tue, 30 Aug 2011 00:57:29 +0000 (00:57 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 30 Aug 2011 00:57:29 +0000 (00:57 +0000)
commit2148011bffc011f8e5f5b6dc1e312fa4afbc10a9
tree0ebdb72742b2fda4b6b07cee2a3390729a2b103c
parentdad879a783f7cf055dd532883cd5efe12bcfd926
Be sure to emit lvalue-to-rvalue casts for loads from x-values.
Doing this happens to disrupt the pattern that ARC was looking for
for move optimizations, so we need to fix that simultaneously.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138789 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjC.cpp
lib/Sema/SemaOverload.cpp
test/CodeGenCXX/rvalue-references.cpp