diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 4 | ||||
-rw-r--r-- | clang/lib/Analysis/ThreadSafety.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Serialization/ASTReaderInternals.h | 11 |
3 files changed, 2 insertions, 15 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index c5e7598dcec..338f006ce09 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -7199,9 +7199,7 @@ class DataRecursiveIntBinOpEvaluator { enum { AnyExprKind, BinOpKind, BinOpVisitedLHSKind } Kind; Job() = default; - Job(Job &&J) - : E(J.E), LHSResult(J.LHSResult), Kind(J.Kind), - SpecEvalRAII(std::move(J.SpecEvalRAII)) {} + Job(Job &&) = default; void startSpeculativeEval(EvalInfo &Info) { SpecEvalRAII = SpeculativeEvaluationRAII(Info); diff --git a/clang/lib/Analysis/ThreadSafety.cpp b/clang/lib/Analysis/ThreadSafety.cpp index 1417a5a41d8..984a5d42adb 100644 --- a/clang/lib/Analysis/ThreadSafety.cpp +++ b/clang/lib/Analysis/ThreadSafety.cpp @@ -257,7 +257,7 @@ private: struct BeforeInfo { BeforeInfo() : Visited(0) {} - BeforeInfo(BeforeInfo &&O) : Vect(std::move(O.Vect)), Visited(O.Visited) {} + BeforeInfo(BeforeInfo &&) = default; BeforeVect Vect; int Visited; diff --git a/clang/lib/Serialization/ASTReaderInternals.h b/clang/lib/Serialization/ASTReaderInternals.h index cdfed9bab74..6cb4d662e33 100644 --- a/clang/lib/Serialization/ASTReaderInternals.h +++ b/clang/lib/Serialization/ASTReaderInternals.h @@ -110,17 +110,6 @@ public: struct DeclContextLookupTable { MultiOnDiskHashTable<ASTDeclContextNameLookupTrait> Table; - - // These look redundant, but don't remove them -- they work around MSVC 2013's - // inability to synthesize move operations. Without them, the - // MultiOnDiskHashTable will be copied (despite being move-only!). - DeclContextLookupTable() : Table() {} - DeclContextLookupTable(DeclContextLookupTable &&O) - : Table(std::move(O.Table)) {} - DeclContextLookupTable &operator=(DeclContextLookupTable &&O) { - Table = std::move(O.Table); - return *this; - } }; /// \brief Base class for the trait describing the on-disk hash table for the |