r221008 - Fix an accidental self-assignment using std::move in r220723.

Kaelyn Takata rikka at google.com
Fri Oct 31 15:25:09 PDT 2014


Author: rikka
Date: Fri Oct 31 17:25:09 2014
New Revision: 221008

URL: http://llvm.org/viewvc/llvm-project?rev=221008&view=rev
Log:
Fix an accidental self-assignment using std::move in r220723.

Modified:
    cfe/trunk/include/clang/Sema/SemaInternal.h

Modified: cfe/trunk/include/clang/Sema/SemaInternal.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/SemaInternal.h?rev=221008&r1=221007&r2=221008&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/SemaInternal.h (original)
+++ cfe/trunk/include/clang/Sema/SemaInternal.h Fri Oct 31 17:25:09 2014
@@ -275,7 +275,7 @@ inline Sema::TypoExprState &Sema::TypoEx
     Sema::TypoExprState &&other) LLVM_NOEXCEPT {
   Consumer = std::move(other.Consumer);
   DiagHandler = std::move(other.DiagHandler);
-  RecoveryHandler = std::move(RecoveryHandler);
+  RecoveryHandler = std::move(other.RecoveryHandler);
   return *this;
 }
 





More information about the cfe-commits mailing list