aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-01-05 18:23:18 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-01-05 18:23:18 +0000
commit61137e1a505f1e37c80cefab1f1a1a06a5c6c3b2 (patch)
tree0ed84953d2fe32917b91c341d32a4f3e84a6ca7b /clang/lib/Frontend/CompilerInstance.cpp
parentb01e84424138cdad032a1f7f0cc097c04af22028 (diff)
downloadllvm-61137e1a505f1e37c80cefab1f1a1a06a5c6c3b2.zip
llvm-61137e1a505f1e37c80cefab1f1a1a06a5c6c3b2.tar.gz
llvm-61137e1a505f1e37c80cefab1f1a1a06a5c6c3b2.tar.bz2
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/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index ccddd14..fea4447 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -498,7 +498,7 @@ IntrusiveRefCntPtr<ASTReader> CompilerInstance::createPCHExternalASTSource(
StringRef Path, StringRef Sysroot, bool DisablePCHValidation,
bool AllowPCHWithCompilerErrors, Preprocessor &PP, ASTContext &Context,
const PCHContainerReader &PCHContainerRdr,
- ArrayRef<IntrusiveRefCntPtr<ModuleFileExtension>> Extensions,
+ ArrayRef<std::shared_ptr<ModuleFileExtension>> Extensions,
void *DeserializationListener, bool OwnDeserializationListener,
bool Preamble, bool UseGlobalModuleIndex) {
HeaderSearchOptions &HSOpts = PP.getHeaderSearchInfo().getHeaderSearchOpts();