[cfe-commits] r68235 - /cfe/trunk/tools/driver/driver.cpp
Daniel Dunbar
daniel at zuster.org
Wed Apr 1 12:38:07 PDT 2009
Author: ddunbar
Date: Wed Apr 1 14:38:07 2009
New Revision: 68235
URL: http://llvm.org/viewvc/llvm-project?rev=68235&view=rev
Log:
Allow CCC_ADD_ARGS to add empty arguments
Modified:
cfe/trunk/tools/driver/driver.cpp
Modified: cfe/trunk/tools/driver/driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/driver.cpp?rev=68235&r1=68234&r2=68235&view=diff
==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Wed Apr 1 14:38:07 2009
@@ -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') {
More information about the cfe-commits
mailing list