From: Richard Smith Date: Sun, 17 Jul 2016 20:00:59 +0000 (+0000) Subject: Attempt to work around MSVC rejects-valid, round 2. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b982b0f61ba0147eb3d502a524bffa288f4e6428;p=clang Attempt to work around MSVC rejects-valid, round 2. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275730 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/ChainedIncludesSource.cpp b/lib/Frontend/ChainedIncludesSource.cpp index 708e262de6..3f126615b1 100644 --- a/lib/Frontend/ChainedIncludesSource.cpp +++ b/lib/Frontend/ChainedIncludesSource.cpp @@ -54,6 +54,10 @@ private: /// Members of ChainedIncludesSource, factored out so we can initialize /// them before we initialize the ExternalSemaSource base class. struct ChainedIncludesSourceMembers { + ChainedIncludesSourceMembers( + std::vector> CIs, + IntrusiveRefCntPtr FinalReader) + : Impl(std::move(CIs)), FinalReader(std::move(FinalReader)) {} ChainedIncludesSourceImpl Impl; IntrusiveRefCntPtr FinalReader; }; @@ -66,8 +70,7 @@ class ChainedIncludesSource public: ChainedIncludesSource(std::vector> CIs, IntrusiveRefCntPtr FinalReader) - : ChainedIncludesSourceMembers(ChainedIncludesSourceMembers{ - {std::move(CIs)}, std::move(FinalReader)}), + : ChainedIncludesSourceMembers(std::move(CIs), std::move(FinalReader)), MultiplexExternalSemaSource(Impl, *this->FinalReader) {} }; }