[cfe-commits] r133655 - /cfe/trunk/lib/Sema/SemaLookup.cpp

Sean Hunt scshunt at csclub.uwaterloo.ca
Wed Jun 22 15:13:13 PDT 2011


Author: coppro
Date: Wed Jun 22 17:13:13 2011
New Revision: 133655

URL: http://llvm.org/viewvc/llvm-project?rev=133655&view=rev
Log:
Fix a think-o that amazingly didn't show up until I started writing
implicit move tests.

Modified:
    cfe/trunk/lib/Sema/SemaLookup.cpp

Modified: cfe/trunk/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLookup.cpp?rev=133655&r1=133654&r2=133655&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Wed Jun 22 17:13:13 2011
@@ -2225,7 +2225,7 @@
     // 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;





More information about the cfe-commits mailing list