Incremental fixes of issues found by Xcode static analyzer.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@137257 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/driver/Driver.cpp b/tools/driver/Driver.cpp
index da31fb7..77899c3 100644
--- a/tools/driver/Driver.cpp
+++ b/tools/driver/Driver.cpp
@@ -554,8 +554,7 @@
                             else if (file.ResolveExecutableLocation())
                             {
                                 char path[PATH_MAX];
-                                int path_len;
-                                file.GetPath (path, path_len);
+                                file.GetPath (path, sizeof(path));
                                 m_option_data.m_args.push_back (path);
                             }
                             else
@@ -584,8 +583,7 @@
                             else if (file.ResolveExecutableLocation())
                             {
                                 char final_path[PATH_MAX];
-                                size_t path_len;
-                                file.GetPath (final_path, path_len);
+                                file.GetPath (final_path, sizeof(final_path));
                                 std::string path_str (final_path);
                                 m_option_data.m_source_command_files.push_back (path_str);
                             }
@@ -1225,7 +1223,6 @@
                                 done = true;
                                 if (event_type & IOChannel::eBroadcastBitThreadDidExit)
                                     iochannel_thread_exited = true;
-                                break;
                             }
                             else
                                 done = HandleIOEvent (event);