aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/ChainedIncludesSource.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-26 21:33:27 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-26 21:33:27 +0000
commit24ec769058dcb5ae86c3edfa4b8dee787d888763 (patch)
tree28e944c049ea6955d69d60c6d933d1087168334a /clang/lib/Frontend/ChainedIncludesSource.cpp
parent139cfc2e63ddb83a6e9ab668ea806597057f47a2 (diff)
downloadllvm-24ec769058dcb5ae86c3edfa4b8dee787d888763.zip
llvm-24ec769058dcb5ae86c3edfa4b8dee787d888763.tar.gz
llvm-24ec769058dcb5ae86c3edfa4b8dee787d888763.tar.bz2
[frontend] Make -chain-include work when used with modules.
llvm-svn: 180633
Diffstat (limited to 'clang/lib/Frontend/ChainedIncludesSource.cpp')
-rw-r--r--clang/lib/Frontend/ChainedIncludesSource.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/ChainedIncludesSource.cpp b/clang/lib/Frontend/ChainedIncludesSource.cpp
index a17def0..cde84ca 100644
--- a/clang/lib/Frontend/ChainedIncludesSource.cpp
+++ b/clang/lib/Frontend/ChainedIncludesSource.cpp
@@ -143,6 +143,7 @@ ChainedIncludesSource *ChainedIncludesSource::create(CompilerInstance &CI) {
Clang->getASTConsumer().GetASTDeserializationListener()));
if (!Reader)
return 0;
+ Clang->setModuleManager(static_cast<ASTReader*>(Reader.get()));
Clang->getASTContext().setExternalSource(Reader);
}