]> granicus.if.org Git - clang/commitdiff
Update for llvm change.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 8 Sep 2017 00:01:26 +0000 (00:01 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 8 Sep 2017 00:01:26 +0000 (00:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312766 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-format/ClangFormat.cpp
tools/clang-offload-bundler/ClangOffloadBundler.cpp

index 37c2d8b78f6290a8f3b0b160556ac284a295f7fe..e169b9e5854a80a27f0597156265be69f18c6fc6 100644 (file)
@@ -351,8 +351,10 @@ int main(int argc, const char **argv) {
       "together with <file>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<clang::format::FormatStyle> FormatStyle =
index 95d3fdf14d5ead3b242df7fb3f8b0730ec582170..6ff4becb5030e8342c7d5d15543d0e64351d16e7 100644 (file)
@@ -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) {