aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/ChainedIncludesSource.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-11-16 04:24:59 +0000
committerDouglas Gregor <dgregor@apple.com>2012-11-16 04:24:59 +0000
commit49a87549f4dc95ecb3d8a593b71df7c167a51f85 (patch)
treecb41ada4fc9414ba682b6b5c9cf778c6bc9b59ec /lib/Frontend/ChainedIncludesSource.cpp
parent8149a98f6691f2b6eb58389f329187d0f1b8ffd1 (diff)
Since CreateTargetInfo is taking ownership of the target options, pass
it as a pointer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ChainedIncludesSource.cpp')
-rw-r--r--lib/Frontend/ChainedIncludesSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/ChainedIncludesSource.cpp b/lib/Frontend/ChainedIncludesSource.cpp
index 94d950f189..3a5ceef48f 100644
--- a/lib/Frontend/ChainedIncludesSource.cpp
+++ b/lib/Frontend/ChainedIncludesSource.cpp
@@ -99,7 +99,7 @@ ChainedIncludesSource *ChainedIncludesSource::create(CompilerInstance &CI) {
Clang->setInvocation(CInvok.take());
Clang->setDiagnostics(Diags.getPtr());
Clang->setTarget(TargetInfo::CreateTargetInfo(Clang->getDiagnostics(),
- Clang->getTargetOpts()));
+ &Clang->getTargetOpts()));
Clang->createFileManager();
Clang->createSourceManager(Clang->getFileManager());
Clang->createPreprocessor();