[cfe-commits] r72425 - /cfe/trunk/tools/driver/driver.cpp

Daniel Dunbar daniel at zuster.org
Tue May 26 11:00:26 PDT 2009


Author: ddunbar
Date: Tue May 26 13:00:25 2009
New Revision: 72425

URL: http://llvm.org/viewvc/llvm-project?rev=72425&view=rev
Log:
Revert to using &...[0] for std::vector, apparently .data isn't generally
available (and it isn't necessary in this case).

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=72425&r1=72424&r2=72425&view=diff

==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Tue May 26 13:00:25 2009
@@ -189,7 +189,7 @@
     ApplyQAOverride(StringPointers, OverrideStr, SavedStrings);
 
     C.reset(TheDriver.BuildCompilation(StringPointers.size(), 
-                                       StringPointers.data()));
+                                       &StringPointers[0]));
   } else if (const char *Cur = ::getenv("CCC_ADD_ARGS")) {
     std::vector<const char*> StringPointers;
 
@@ -213,7 +213,7 @@
     StringPointers.insert(StringPointers.end(), argv + 1, argv + argc);
 
     C.reset(TheDriver.BuildCompilation(StringPointers.size(), 
-                                       StringPointers.data()));
+                                       &StringPointers[0]));
   } else
     C.reset(TheDriver.BuildCompilation(argc, argv));
 





More information about the cfe-commits mailing list