From 595c51342c8bb1d256e0d6bd2bfedc03899f60cd Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Thu, 8 Jul 2010 22:01:51 +0000 Subject: Some preparatory work for chained PCH. No functionality change. llvm-svn: 107915 --- clang/lib/Frontend/CompilerInstance.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Frontend/CompilerInstance.cpp') diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 0ff70edf8b4..fa5338d30e6 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -255,6 +255,8 @@ void CompilerInstance::createPCHExternalASTSource(llvm::StringRef Path) { llvm::OwningPtr Source; Source.reset(createPCHExternalASTSource(Path, getHeaderSearchOpts().Sysroot, getPreprocessor(), getASTContext())); + // Remember the PCHReader, but in a non-owning way. + Reader = static_cast(Source.get()); getASTContext().setExternalSource(Source); } -- cgit v1.2.3