aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/ToolRunner.h4
-rw-r--r--lib/Support/ToolRunner.cpp4
-rw-r--r--tools/bugpoint/ToolRunner.cpp4
-rw-r--r--tools/bugpoint/ToolRunner.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/Support/ToolRunner.h b/include/llvm/Support/ToolRunner.h
index 36cb976e88..9d1755a298 100644
--- a/include/llvm/Support/ToolRunner.h
+++ b/include/llvm/Support/ToolRunner.h
@@ -124,7 +124,7 @@ public:
CBE(const std::string &llcPath, GCC *Gcc,
const std::vector<std::string> *Args) : LLCPath(llcPath), gcc(Gcc) {
ToolArgs.clear ();
- if (Args) { ToolArgs.assign (Args->begin (), Args->end ()); }
+ if (Args) { ToolArgs = *Args; }
}
~CBE() { delete gcc; }
@@ -160,7 +160,7 @@ public:
LLC(const std::string &llcPath, GCC *Gcc,
const std::vector<std::string> *Args) : LLCPath(llcPath), gcc(Gcc) {
ToolArgs.clear ();
- if (Args) { ToolArgs.assign (Args->begin (), Args->end ()); }
+ if (Args) { ToolArgs = *Args; }
}
~LLC() { delete gcc; }
diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp
index e7f7d219d2..a28527a1c2 100644
--- a/lib/Support/ToolRunner.cpp
+++ b/lib/Support/ToolRunner.cpp
@@ -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,
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp
index e7f7d219d2..a28527a1c2 100644
--- a/tools/bugpoint/ToolRunner.cpp
+++ b/tools/bugpoint/ToolRunner.cpp
@@ -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,
diff --git a/tools/bugpoint/ToolRunner.h b/tools/bugpoint/ToolRunner.h
index 36cb976e88..9d1755a298 100644
--- a/tools/bugpoint/ToolRunner.h
+++ b/tools/bugpoint/ToolRunner.h
@@ -124,7 +124,7 @@ public:
CBE(const std::string &llcPath, GCC *Gcc,
const std::vector<std::string> *Args) : LLCPath(llcPath), gcc(Gcc) {
ToolArgs.clear ();
- if (Args) { ToolArgs.assign (Args->begin (), Args->end ()); }
+ if (Args) { ToolArgs = *Args; }
}
~CBE() { delete gcc; }
@@ -160,7 +160,7 @@ public:
LLC(const std::string &llcPath, GCC *Gcc,
const std::vector<std::string> *Args) : LLCPath(llcPath), gcc(Gcc) {
ToolArgs.clear ();
- if (Args) { ToolArgs.assign (Args->begin (), Args->end ()); }
+ if (Args) { ToolArgs = *Args; }
}
~LLC() { delete gcc; }