Fix some wrong-code bugs in implicitly-defined assignment operators:
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 Nov 2012 00:54:12 +0000 (00:54 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 Nov 2012 00:54:12 +0000 (00:54 +0000)
commit52c0b58d33385417567a404149570fd2b6895c91
treeda657dd4afd3bd24cdce33618b73f79ded26ccda
parentedac22a9f3b1355c01ae4fb66958e93db2387ffb
Fix some wrong-code bugs in implicitly-defined assignment operators:
 - In C++11, perform overload resolution over all assignment operators, rather than just looking for copy/move assignment operators.
 - Clean up after temporaries produced by operator= immediately, rather than accumulating them until the end of the function.

llvm-svn: 167798
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CXX/special/class.copy/p28-cxx11.cpp [new file with mode: 0644]
clang/test/CodeGenCXX/temporaries.cpp