aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-01-13 17:34:15 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-01-13 17:34:15 +0000
commit0aaa7625e1fcd11356dc2ebc398c06948ccc5fa0 (patch)
tree4b93b0c2bb6aa1c4e444c1cf274e9688e43eeeeb /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent10527a92539f3533b2149afd7f85b098eeee9b23 (diff)
downloadllvm-0aaa7625e1fcd11356dc2ebc398c06948ccc5fa0.zip
llvm-0aaa7625e1fcd11356dc2ebc398c06948ccc5fa0.tar.gz
llvm-0aaa7625e1fcd11356dc2ebc398c06948ccc5fa0.tar.bz2
unique_ptrify createDriverOptTable
llvm-svn: 291919
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r--clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index 187a6e7..1f7493c 100644
--- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -174,7 +174,7 @@ CreateFrontendAction(CompilerInstance &CI) {
bool clang::ExecuteCompilerInvocation(CompilerInstance *Clang) {
// Honor -help.
if (Clang->getFrontendOpts().ShowHelp) {
- std::unique_ptr<OptTable> Opts(driver::createDriverOptTable());
+ std::unique_ptr<OptTable> Opts = driver::createDriverOptTable();
Opts->PrintHelp(llvm::outs(), "clang -cc1",
"LLVM 'Clang' Compiler: http://clang.llvm.org",
/*Include=*/ driver::options::CC1Option, /*Exclude=*/ 0);