diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-01-05 18:23:18 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-01-05 18:23:18 +0000 |
commit | 61137e1a505f1e37c80cefab1f1a1a06a5c6c3b2 (patch) | |
tree | 0ed84953d2fe32917b91c341d32a4f3e84a6ca7b /clang/lib/Frontend/ChainedIncludesSource.cpp | |
parent | b01e84424138cdad032a1f7f0cc097c04af22028 (diff) | |
download | bcm5719-llvm-61137e1a505f1e37c80cefab1f1a1a06a5c6c3b2.tar.gz bcm5719-llvm-61137e1a505f1e37c80cefab1f1a1a06a5c6c3b2.zip |
Use shared_ptr instead of IntrusiveRefCntPtr for ModuleFileExtension
The intrusiveness wasn't needed here, so this simplifies/clarifies the
ownership model.
llvm-svn: 291150
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 c5b77ee90e5..b621facf409 100644 --- a/clang/lib/Frontend/ChainedIncludesSource.cpp +++ b/clang/lib/Frontend/ChainedIncludesSource.cpp @@ -159,7 +159,7 @@ IntrusiveRefCntPtr<ExternalSemaSource> clang::createChainedIncludesSource( Clang->createASTContext(); auto Buffer = std::make_shared<PCHBuffer>(); - ArrayRef<llvm::IntrusiveRefCntPtr<ModuleFileExtension>> Extensions; + ArrayRef<std::shared_ptr<ModuleFileExtension>> Extensions; auto consumer = llvm::make_unique<PCHGenerator>( Clang->getPreprocessor(), "-", /*isysroot=*/"", Buffer, Extensions, /*AllowASTWithErrors=*/true); |