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 /clang/lib/Frontend/ChainedIncludesSource.cpp | |
parent | a41deb1c690df45c2adbea10b8aecefa1892a88d (diff) | |
download | llvm-5eb7e1bf18cd8c488d43f88b836a7d913d10cb3b.zip llvm-5eb7e1bf18cd8c488d43f88b836a7d913d10cb3b.tar.gz llvm-5eb7e1bf18cd8c488d43f88b836a7d913d10cb3b.tar.bz2 |
Attempt to work around MSVC rejects-valid, round 2.
llvm-svn: 275730
Diffstat (limited to 'clang/lib/Frontend/ChainedIncludesSource.cpp')
-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 708e262..3f12661 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) {} }; } |