diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-05-04 22:02:41 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-05-04 22:02:41 +0000 |
commit | 48b008db57cf1ffabf949364622c9ecfe0ec85c4 (patch) | |
tree | 2e223d2d71d0e1d6d595318b882356bc7d4f1d31 /lib/Support | |
parent | 4a9c90446d2807ce71fc1b26cccc130e28f10c57 (diff) | |
download | external_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 'lib/Support')
-rw-r--r-- | lib/Support/ToolRunner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp index e7f7d21..a28527a 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, |