diff options
Diffstat (limited to 'tools/clang-offload-bundler/ClangOffloadBundler.cpp')
-rw-r--r-- | tools/clang-offload-bundler/ClangOffloadBundler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/clang-offload-bundler/ClangOffloadBundler.cpp b/tools/clang-offload-bundler/ClangOffloadBundler.cpp index 49cdd9546689..6ff4becb5030 100644 --- a/tools/clang-offload-bundler/ClangOffloadBundler.cpp +++ b/tools/clang-offload-bundler/ClangOffloadBundler.cpp @@ -915,8 +915,7 @@ static bool UnbundleFiles() { return false; } -static void PrintVersion() { - raw_ostream &OS = outs(); +static void PrintVersion(raw_ostream &OS) { OS << clang::getClangToolFullVersion("clang-offload-bundler") << '\n'; } @@ -932,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) { |