From 6b83f669b2ed6e7353cd849601fae9c88525bf19 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 1 Apr 2009 19:38:07 +0000 Subject: [PATCH] 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 --- tools/driver/driver.cpp | 8 +++----- 1 file 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') { -- 2.50.1