aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/ChainedIncludesSource.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-07-17 20:00:59 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-07-17 20:00:59 +0000
commit5eb7e1bf18cd8c488d43f88b836a7d913d10cb3b (patch)
tree4f80e415835bcdb97bbdc99912c4d0a43d8ed306 /clang/lib/Frontend/ChainedIncludesSource.cpp
parenta41deb1c690df45c2adbea10b8aecefa1892a88d (diff)
downloadllvm-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.cpp7
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) {}
};
}