aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaLookup.cpp
diff options
context:
space:
mode:
authorSean Hunt <scshunt@csclub.uwaterloo.ca>2011-06-22 22:13:13 +0000
committerSean Hunt <scshunt@csclub.uwaterloo.ca>2011-06-22 22:13:13 +0000
commitab183dff7ed681f7140a8e32510c4f619b791d2e (patch)
tree40e5ddbcddbfefb71854a6a4455e0b974d08649b /lib/Sema/SemaLookup.cpp
parentd543130a3009a350017e2e411ea43bb3e5459b96 (diff)
Fix a think-o that amazingly didn't show up until I started writing
implicit move tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaLookup.cpp')
-rw-r--r--lib/Sema/SemaLookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp
index dc007cdce9..204a697e93 100644
--- a/lib/Sema/SemaLookup.cpp
+++ b/lib/Sema/SemaLookup.cpp
@@ -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;