summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/SourceManagerTest.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-07-06 05:26:44 +0000
committerAlp Toker <alp@nuanti.com>2014-07-06 05:26:44 +0000
commit80758084f70dbdaa4ca16661871215bacee0ab18 (patch)
tree6b8f303b64953d187cb79f3631f1c5a7cb3c6f14 /clang/unittests/Basic/SourceManagerTest.cpp
parent269d840e40cdff7ff677fe11361af91e759ac1f1 (diff)
downloadbcm5719-llvm-80758084f70dbdaa4ca16661871215bacee0ab18.tar.gz
bcm5719-llvm-80758084f70dbdaa4ca16661871215bacee0ab18.zip
Use non-intrusive refcounting for TargetOptions
llvm-svn: 212388
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
-rw-r--r--clang/unittests/Basic/SourceManagerTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Basic/SourceManagerTest.cpp b/clang/unittests/Basic/SourceManagerTest.cpp
index 5416ea7ef44..9ea093c6b2b 100644
--- a/clang/unittests/Basic/SourceManagerTest.cpp
+++ b/clang/unittests/Basic/SourceManagerTest.cpp
@@ -38,7 +38,7 @@ protected:
SourceMgr(Diags, FileMgr),
TargetOpts(new TargetOptions) {
TargetOpts->Triple = "x86_64-apple-darwin11.1.0";
- Target = TargetInfo::CreateTargetInfo(Diags, &*TargetOpts);
+ Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts);
}
FileSystemOptions FileMgrOpts;
@@ -47,7 +47,7 @@ protected:
DiagnosticsEngine Diags;
SourceManager SourceMgr;
LangOptions LangOpts;
- IntrusiveRefCntPtr<TargetOptions> TargetOpts;
+ std::shared_ptr<TargetOptions> TargetOpts;
IntrusiveRefCntPtr<TargetInfo> Target;
};
OpenPOWER on IntegriCloud