diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-01 19:38:07 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-01 19:38:07 +0000 |
commit | 6b83f669b2ed6e7353cd849601fae9c88525bf19 (patch) | |
tree | fece8733496060b7878125982c2cc84392c90f59 /tools/driver/driver.cpp | |
parent | 99eee3675e830ff367ae1fe35ce19fb49e7e4114 (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
Diffstat (limited to 'tools/driver/driver.cpp')
-rw-r--r-- | tools/driver/driver.cpp | 8 |
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') { |