From 6f7382ddd11db36df6b7f08324134ec1a54e0a5e Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sun, 10 Aug 2014 19:08:04 +0000 Subject: std::unique_ptr-ify the result of ASTUnit::LoadFromASTFile llvm-svn: 215320 --- clang/lib/Frontend/FrontendAction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Frontend/FrontendAction.cpp') diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp index 8295d6ddfa9..cd3dd1f17dd 100644 --- a/clang/lib/Frontend/FrontendAction.cpp +++ b/clang/lib/Frontend/FrontendAction.cpp @@ -189,8 +189,8 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI, IntrusiveRefCntPtr Diags(&CI.getDiagnostics()); - std::unique_ptr AST( - ASTUnit::LoadFromASTFile(InputFile, Diags, CI.getFileSystemOpts())); + std::unique_ptr AST = + ASTUnit::LoadFromASTFile(InputFile, Diags, CI.getFileSystemOpts()); if (!AST) goto failure; -- cgit v1.2.3