From: Justin Lebar Date: Tue, 11 Oct 2016 00:23:53 +0000 (+0000) Subject: [Sema] Add explicit move constructor for ExpressionEvaluationContextRecord. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=651a37d1e020f5a070e001c191185adc81066d40;p=clang [Sema] Add explicit move constructor for ExpressionEvaluationContextRecord. This is needed to keep MSVC 2013 happy. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283833 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 45f62e2be8..166f23b976 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -896,6 +896,19 @@ public: NumTypos(0), ManglingContextDecl(ManglingContextDecl), MangleNumbering() { } + // FIXME: This is here only to make MSVC 2013 happy. Remove it and rely on + // the default move constructor once MSVC 2013 is gone. + ExpressionEvaluationContextRecord(ExpressionEvaluationContextRecord &&E) + : Context(E.Context), ParentCleanup(E.ParentCleanup), + IsDecltype(E.IsDecltype), NumCleanupObjects(E.NumCleanupObjects), + NumTypos(E.NumTypos), + SavedMaybeODRUseExprs(std::move(E.SavedMaybeODRUseExprs)), + Lambdas(std::move(E.Lambdas)), + ManglingContextDecl(E.ManglingContextDecl), + MangleNumbering(std::move(E.MangleNumbering)), + DelayedDecltypeCalls(std::move(E.DelayedDecltypeCalls)), + DelayedDecltypeBinds(std::move(E.DelayedDecltypeBinds)) {} + /// \brief Retrieve the mangling numbering context, used to consistently /// number constructs like lambdas for mangling. MangleNumberingContext &getMangleNumberingContext(ASTContext &Ctx);