diff options
author | Justin Lebar <jlebar@google.com> | 2016-10-11 00:23:53 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-10-11 00:23:53 +0000 |
commit | 4043ca7394046be5c47740e9c5a83382ee734419 (patch) | |
tree | a5b2c1c51ffed305b71246dfb56ab9eddfdf56bc | |
parent | d2623f8e38fba0edee28fa14479247f3634d91d3 (diff) | |
download | bcm5719-llvm-4043ca7394046be5c47740e9c5a83382ee734419.tar.gz bcm5719-llvm-4043ca7394046be5c47740e9c5a83382ee734419.zip |
[Sema] Add explicit move constructor for ExpressionEvaluationContextRecord.
This is needed to keep MSVC 2013 happy.
llvm-svn: 283833
-rw-r--r-- | clang/include/clang/Sema/Sema.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index 45f62e2be83..166f23b9768 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/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); |