Pass argc by value, not by reference, since it isn't modified.
[oota-llvm.git] / lib / Support / CommandLine.cpp
index fc25a633ab3c43943bbb075159cb9cc662edf448..eed780437bb0b97416c42eb59e0c9990c1534a6d 100644 (file)
@@ -332,7 +332,7 @@ void cl::ParseEnvironmentOptions(const char *progName, const char *envVar,
     free (*i);
 }
 
-void cl::ParseCommandLineOptions(int &argc, char **argv,
+void cl::ParseCommandLineOptions(int argc, char **argv,
                                  const char *Overview) {
   // Process all registered options.
   std::vector<Option*> PositionalOpts;