From db69502f2e37593ae8621f61b1f94d0f41fd2940 Mon Sep 17 00:00:00 2001 From: Kaelyn Takata Date: Fri, 31 Oct 2014 22:25:09 +0000 Subject: [PATCH] Fix an accidental self-assignment using std::move in r220723. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221008 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/SemaInternal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clang/Sema/SemaInternal.h b/include/clang/Sema/SemaInternal.h index 8c75264a81..321d9364fa 100644 --- a/include/clang/Sema/SemaInternal.h +++ b/include/clang/Sema/SemaInternal.h @@ -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; } -- 2.50.1