[Lldb-commits] [lldb] r219891 - Remove unused change to argc/argv after long option parsing has been completed.

Jason Molenda jmolenda at apple.com
Wed Oct 15 18:50:14 PDT 2014


Author: jmolenda
Date: Wed Oct 15 20:50:14 2014
New Revision: 219891

URL: http://llvm.org/viewvc/llvm-project?rev=219891&view=rev
Log:
Remove unused change to argc/argv after long option parsing has been completed.
clang static analyzer fixit.

Modified:
    lldb/trunk/tools/lldb-platform/lldb-platform.cpp

Modified: lldb/trunk/tools/lldb-platform/lldb-platform.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-platform/lldb-platform.cpp?rev=219891&r1=219890&r2=219891&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-platform/lldb-platform.cpp (original)
+++ lldb/trunk/tools/lldb-platform/lldb-platform.cpp Wed Oct 15 20:50:14 2014
@@ -233,10 +233,6 @@ main (int argc, char *argv[])
         exit(option_error);
     }
     
-    // Skip any options we consumed with getopt_long_only
-    argc -= optind;
-    argv += optind;
-
     // Execute any LLDB commands that we were asked to evaluate.
     for (const auto &lldb_command : lldb_commands)
     {





More information about the lldb-commits mailing list