diff options
author | Alp Toker <alp@nuanti.com> | 2014-07-06 05:26:44 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-07-06 05:26:44 +0000 |
commit | 1088db3c87aaa931d7ace86baab3492b3ebac97a (patch) | |
tree | 7211ebc797887f7bb06b7f8a5e45eb4654423467 /lib/Frontend/ChainedIncludesSource.cpp | |
parent | 3e84eb7db6c89f09a524d08ea6c03c0022decb64 (diff) |
Use non-intrusive refcounting for TargetOptions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ChainedIncludesSource.cpp')
-rw-r--r-- | lib/Frontend/ChainedIncludesSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/ChainedIncludesSource.cpp b/lib/Frontend/ChainedIncludesSource.cpp index 45851a0d60..01897cbf2a 100644 --- a/lib/Frontend/ChainedIncludesSource.cpp +++ b/lib/Frontend/ChainedIncludesSource.cpp @@ -100,8 +100,8 @@ ChainedIncludesSource::create(CompilerInstance &CI) { std::unique_ptr<CompilerInstance> Clang(new CompilerInstance()); Clang->setInvocation(CInvok.release()); Clang->setDiagnostics(Diags.get()); - Clang->setTarget(TargetInfo::CreateTargetInfo(Clang->getDiagnostics(), - &Clang->getTargetOpts())); + Clang->setTarget(TargetInfo::CreateTargetInfo( + Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); Clang->createFileManager(); Clang->createSourceManager(Clang->getFileManager()); Clang->createPreprocessor(TU_Prefix); |