Author: jlebar Date: Mon Oct 10 19:23:53 2016 New Revision: 283833 URL: http://llvm.org/viewvc/llvm-project?rev=283833&view=rev Log: [Sema] Add explicit move constructor for ExpressionEvaluationContextRecord.
This is needed to keep MSVC 2013 happy. Modified: cfe/trunk/include/clang/Sema/Sema.h Modified: cfe/trunk/include/clang/Sema/Sema.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=283833&r1=283832&r2=283833&view=diff ============================================================================== --- cfe/trunk/include/clang/Sema/Sema.h (original) +++ cfe/trunk/include/clang/Sema/Sema.h Mon Oct 10 19:23:53 2016 @@ -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); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits