Fix a think-o that amazingly didn't show up until I started writing

implicit move tests.

llvm-svn: 133655
This commit is contained in:
Alexis Hunt 2011-06-22 22:13:13 +00:00
parent 33e022650a
commit 46d1ce23a7
1 changed files with 1 additions and 1 deletions

View File

@ -2225,7 +2225,7 @@ Sema::SpecialMemberOverloadResult *Sema::LookupSpecialMember(CXXRecordDecl *D,
// there is no semantic difference for class types in this restricted
// case.
ExprValueKind VK;
if (SM == CXXCopyAssignment || SM == CXXMoveAssignment)
if (SM == CXXCopyConstructor || SM == CXXCopyAssignment)
VK = VK_LValue;
else
VK = VK_RValue;