aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/PCHPreambleTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Frontend/PCHPreambleTest.cpp')
-rw-r--r--clang/unittests/Frontend/PCHPreambleTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Frontend/PCHPreambleTest.cpp b/clang/unittests/Frontend/PCHPreambleTest.cpp
index d27f793..9991838 100644
--- a/clang/unittests/Frontend/PCHPreambleTest.cpp
+++ b/clang/unittests/Frontend/PCHPreambleTest.cpp
@@ -100,7 +100,7 @@ public:
CompilerInstance::createDiagnostics(*VFS, *DiagOpts,
new DiagnosticConsumer));
- FileManager *FileMgr = new FileManager(FSOpts, VFS);
+ auto FileMgr = llvm::makeIntrusiveRefCnt<FileManager>(FSOpts, VFS);
std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation(
CI, PCHContainerOpts, DiagOpts, Diags, FileMgr, false,