]> granicus.if.org Git - clang/commit
When defining the implicit move assignment operator, don't perform
authorDouglas Gregor <dgregor@apple.com>
Thu, 1 Sep 2011 02:09:07 +0000 (02:09 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 1 Sep 2011 02:09:07 +0000 (02:09 +0000)
commit45d3d716622f12f9d8e77f2e4c8ffddf4bfe3559
tree63053d59f73900496afc7992ef2d6f2032dc67ef
parente6b8d68a927368b06ac06cc9ac9e7f60aa966d5f
When defining the implicit move assignment operator, don't perform
semantic analysis when taking the address of an xvalue. Instead, just
build the unary operator directly, since it's safe to do so (from the
IRgen and AST perspectives) for any glvalue. Fixes PR10822.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138935 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/CXX/special/class.copy/implicit-move-def.cpp