diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-01-05 19:11:31 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-01-05 19:11:31 +0000 |
commit | f95113dacf2b16a74dfb034a9cc32ba08cade14d (patch) | |
tree | 8dad9161d4279dc0f5eaad3b7b2a770f601559ac /clang/lib/Frontend/CompilerInstance.cpp | |
parent | a8bf97569a46440727d45d91819d38b340a217d3 (diff) | |
download | bcm5719-llvm-f95113dacf2b16a74dfb034a9cc32ba08cade14d.tar.gz bcm5719-llvm-f95113dacf2b16a74dfb034a9cc32ba08cade14d.zip |
Move FailedModulesSet over to shared_ptr from IntrusiveRefCntPtr
llvm-svn: 291159
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index fea444715db..9c4c2a67b9c 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -1049,7 +1049,8 @@ static bool compileModuleImpl(CompilerInstance &ImportingInstance, PreprocessorOptions &ImportingPPOpts = ImportingInstance.getInvocation().getPreprocessorOpts(); if (!ImportingPPOpts.FailedModules) - ImportingPPOpts.FailedModules = new PreprocessorOptions::FailedModulesSet; + ImportingPPOpts.FailedModules = + std::make_shared<PreprocessorOptions::FailedModulesSet>(); PPOpts.FailedModules = ImportingPPOpts.FailedModules; // If there is a module map file, build the module using the module map. |