]> granicus.if.org Git - clang/commitdiff
[Sema] Add explicit move constructor for ExpressionEvaluationContextRecord.
authorJustin Lebar <jlebar@google.com>
Tue, 11 Oct 2016 00:23:53 +0000 (00:23 +0000)
committerJustin Lebar <jlebar@google.com>
Tue, 11 Oct 2016 00:23:53 +0000 (00:23 +0000)
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

include/clang/Sema/Sema.h

index 45f62e2be83373699d852840656cd378b07c4a68..166f23b976811b731da2adba0502e0610bc173de 100644 (file)
@@ -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);