aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-01 19:38:07 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-01 19:38:07 +0000
commit6b83f669b2ed6e7353cd849601fae9c88525bf19 (patch)
treefece8733496060b7878125982c2cc84392c90f59
parent99eee3675e830ff367ae1fe35ce19fb49e7e4114 (diff)
Allow CCC_ADD_ARGS to add empty arguments
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68235 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/driver/driver.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index 074cab9d0a..3c75bb0d18 100644
--- a/tools/driver/driver.cpp
+++ b/tools/driver/driver.cpp
@@ -97,11 +97,9 @@ int main(int argc, const char **argv) {
const char *Next = strchr(Cur, ',');
if (Next) {
- if (Cur != Next) {
- const char *P =
- SavedStrings.insert(std::string(Cur, Next)).first->c_str();
- StringPointers.push_back(P);
- }
+ const char *P =
+ SavedStrings.insert(std::string(Cur, Next)).first->c_str();
+ StringPointers.push_back(P);
Cur = Next + 1;
} else {
if (*Cur != '\0') {