diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-07-17 20:00:59 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-07-17 20:00:59 +0000 |
| commit | 5eb7e1bf18cd8c488d43f88b836a7d913d10cb3b (patch) | |
| tree | 4f80e415835bcdb97bbdc99912c4d0a43d8ed306 | |
| parent | a41deb1c690df45c2adbea10b8aecefa1892a88d (diff) | |
| download | bcm5719-llvm-5eb7e1bf18cd8c488d43f88b836a7d913d10cb3b.tar.gz bcm5719-llvm-5eb7e1bf18cd8c488d43f88b836a7d913d10cb3b.zip | |
Attempt to work around MSVC rejects-valid, round 2.
llvm-svn: 275730
| -rw-r--r-- | clang/lib/Frontend/ChainedIncludesSource.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Frontend/ChainedIncludesSource.cpp b/clang/lib/Frontend/ChainedIncludesSource.cpp index 708e262de6b..3f126615b1e 100644 --- a/clang/lib/Frontend/ChainedIncludesSource.cpp +++ b/clang/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<std::unique_ptr<CompilerInstance>> CIs, + IntrusiveRefCntPtr<ExternalSemaSource> FinalReader) + : Impl(std::move(CIs)), FinalReader(std::move(FinalReader)) {} ChainedIncludesSourceImpl Impl; IntrusiveRefCntPtr<ExternalSemaSource> FinalReader; }; @@ -66,8 +70,7 @@ class ChainedIncludesSource public: ChainedIncludesSource(std::vector<std::unique_ptr<CompilerInstance>> CIs, IntrusiveRefCntPtr<ExternalSemaSource> FinalReader) - : ChainedIncludesSourceMembers(ChainedIncludesSourceMembers{ - {std::move(CIs)}, std::move(FinalReader)}), + : ChainedIncludesSourceMembers(std::move(CIs), std::move(FinalReader)), MultiplexExternalSemaSource(Impl, *this->FinalReader) {} }; } |

