aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint/ToolRunner.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bugpoint/ToolRunner.h')
-rw-r--r--tools/bugpoint/ToolRunner.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/ToolRunner.h b/tools/bugpoint/ToolRunner.h
index 36cb976..9d1755a 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; }