aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint/ToolRunner.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-05-04 22:02:41 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-05-04 22:02:41 +0000
commit48b008db57cf1ffabf949364622c9ecfe0ec85c4 (patch)
tree2e223d2d71d0e1d6d595318b882356bc7d4f1d31 /tools/bugpoint/ToolRunner.h
parent4a9c90446d2807ce71fc1b26cccc130e28f10c57 (diff)
downloadexternal_llvm-48b008db57cf1ffabf949364622c9ecfe0ec85c4.zip
external_llvm-48b008db57cf1ffabf949364622c9ecfe0ec85c4.tar.gz
external_llvm-48b008db57cf1ffabf949364622c9ecfe0ec85c4.tar.bz2
Apply simplification suggested by Chris: why assign() when operator = will do?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13364 91177308-0d34-0410-b5e6-96231b3b80d8
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; }