]> granicus.if.org Git - clang/commitdiff
Fix an accidental self-assignment using std::move in r220723.
authorKaelyn Takata <rikka@google.com>
Fri, 31 Oct 2014 22:25:09 +0000 (22:25 +0000)
committerKaelyn Takata <rikka@google.com>
Fri, 31 Oct 2014 22:25:09 +0000 (22:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221008 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/SemaInternal.h

index 8c75264a8163a5c451a0f8cbb671905b1440f958..321d9364fa161d3bd1a7ca59d6debc62bd4dd5eb 100644 (file)
@@ -275,7 +275,7 @@ inline Sema::TypoExprState &Sema::TypoExprState::operator=(
     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;
 }