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
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index 074cab9..3c75bb0 100644
--- a/tools/driver/driver.cpp
+++ b/tools/driver/driver.cpp
@@ -97,11 +97,9 @@
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') {