From e2478b5a9ff4242dc0b119089b26699a3d93f11e Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 1 Mar 2014 09:40:34 +0000 Subject: [PATCH] [C++11] Remove use of LLVM_HAS_RVALUE_REFERENCES from Clang. This macro is now always 1, as we're requiring C++11 now! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202584 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/PartialDiagnostic.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/clang/Basic/PartialDiagnostic.h b/include/clang/Basic/PartialDiagnostic.h index dd29926fce..9be733ae09 100644 --- a/include/clang/Basic/PartialDiagnostic.h +++ b/include/clang/Basic/PartialDiagnostic.h @@ -201,13 +201,11 @@ public: } } -#if LLVM_HAS_RVALUE_REFERENCES PartialDiagnostic(PartialDiagnostic &&Other) : DiagID(Other.DiagID), DiagStorage(Other.DiagStorage), Allocator(Other.Allocator) { Other.DiagStorage = 0; } -#endif PartialDiagnostic(const PartialDiagnostic &Other, Storage *DiagStorage) : DiagID(Other.DiagID), DiagStorage(DiagStorage), @@ -251,7 +249,6 @@ public: return *this; } -#if LLVM_HAS_RVALUE_REFERENCES PartialDiagnostic &operator=(PartialDiagnostic &&Other) { freeStorage(); @@ -262,7 +259,6 @@ public: Other.DiagStorage = 0; return *this; } -#endif ~PartialDiagnostic() { freeStorage(); -- 2.40.0