Apply simplification suggested by Chris: why assign() when operator = will do?
[oota-llvm.git] / tools / bugpoint / ToolRunner.cpp
index e7f7d219d28c71f768b9c56890064797706414c8..a28527a1c278843563669f05a854edbc8f1527de 100644 (file)
@@ -59,7 +59,7 @@ namespace {
     LLI(const std::string &Path, const std::vector<std::string> *Args)
       : LLIPath(Path) {
       ToolArgs.clear ();
-      if (Args) { ToolArgs.assign (Args->begin (), Args->end ()); }
+      if (Args) { ToolArgs = *Args; }
     }
     
     virtual int ExecuteProgram(const std::string &Bytecode,
@@ -199,7 +199,7 @@ namespace {
     JIT(const std::string &Path, const std::vector<std::string> *Args)
       : LLIPath(Path) {
       ToolArgs.clear ();
-      if (Args) { ToolArgs.assign (Args->begin (), Args->end ()); }
+      if (Args) { ToolArgs = *Args; }
     }
     
     virtual int ExecuteProgram(const std::string &Bytecode,