From: Rafael Espindola Date: Fri, 8 Sep 2017 00:01:26 +0000 (+0000) Subject: Update for llvm change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10809bcd26db2f2b3ebb4d110a63bb1e7c18ee8a;p=clang Update for llvm change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312766 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-format/ClangFormat.cpp b/tools/clang-format/ClangFormat.cpp index 37c2d8b78f..e169b9e585 100644 --- a/tools/clang-format/ClangFormat.cpp +++ b/tools/clang-format/ClangFormat.cpp @@ -351,8 +351,10 @@ int main(int argc, const char **argv) { "together with s, the files are edited in-place. Otherwise, the\n" "result is written to the standard output.\n"); - if (Help) + if (Help) { cl::PrintHelpMessage(); + return 0; + } if (DumpConfig) { llvm::Expected FormatStyle = diff --git a/tools/clang-offload-bundler/ClangOffloadBundler.cpp b/tools/clang-offload-bundler/ClangOffloadBundler.cpp index 95d3fdf14d..6ff4becb50 100644 --- a/tools/clang-offload-bundler/ClangOffloadBundler.cpp +++ b/tools/clang-offload-bundler/ClangOffloadBundler.cpp @@ -931,8 +931,10 @@ int main(int argc, const char **argv) { "one. The resulting file can also be unbundled into different files by \n" "this tool if -unbundle is provided.\n"); - if (Help) + if (Help) { cl::PrintHelpMessage(); + return 0; + } bool Error = false; if (Unbundle) {