diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-11-16 04:24:59 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-11-16 04:24:59 +0000 |
commit | f8715de59984b77cc10bbe5939c64a3d4a257942 (patch) | |
tree | 948f4bcf602cea60ab31a8f98e9ac2a2c0d95c03 /clang/lib/Frontend/ChainedIncludesSource.cpp | |
parent | 106d7a27043d4f942d5284ee0c15513e6568ca71 (diff) | |
download | llvm-f8715de59984b77cc10bbe5939c64a3d4a257942.zip llvm-f8715de59984b77cc10bbe5939c64a3d4a257942.tar.gz llvm-f8715de59984b77cc10bbe5939c64a3d4a257942.tar.bz2 |
Since CreateTargetInfo is taking ownership of the target options, pass
it as a pointer.
llvm-svn: 168136
Diffstat (limited to 'clang/lib/Frontend/ChainedIncludesSource.cpp')
-rw-r--r-- | clang/lib/Frontend/ChainedIncludesSource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/ChainedIncludesSource.cpp b/clang/lib/Frontend/ChainedIncludesSource.cpp index 94d950f..3a5ceef 100644 --- a/clang/lib/Frontend/ChainedIncludesSource.cpp +++ b/clang/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(); |