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

Daniel Dunbar daniel at zuster.org
Tue May 26 10:13:56 PDT 2009


Author: ddunbar
Date: Tue May 26 12:13:50 2009
New Revision: 72420

URL: http://llvm.org/viewvc/llvm-project?rev=72420&view=rev
Log:
Use .data() vs &...[0]

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=72420&r1=72419&r2=72420&view=diff

==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Tue May 26 12:13:50 2009
@@ -189,7 +189,7 @@
     ApplyQAOverride(StringPointers, OverrideStr, SavedStrings);
 
     C.reset(TheDriver.BuildCompilation(StringPointers.size(), 
-                                       &StringPointers[0]));
+                                       StringPointers.data()));
   } 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[0]));
+                                       StringPointers.data()));
   } else
     C.reset(TheDriver.BuildCompilation(argc, argv));
 





More information about the cfe-commits mailing list