]> granicus.if.org Git - clang/commitdiff
Revert to using &...[0] for std::vector, apparently .data isn't generally
authorDaniel Dunbar <daniel@zuster.org>
Tue, 26 May 2009 18:00:25 +0000 (18:00 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 26 May 2009 18:00:25 +0000 (18:00 +0000)
available (and it isn't necessary in this case).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72425 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/driver.cpp

index cc89b0a0315c1676f5b8d88a400f936959fbdd17..804bef4058c9c911dc378d6525f2fedb7eca69ad 100644 (file)
@@ -189,7 +189,7 @@ int main(int argc, const char **argv) {
     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 @@ int main(int argc, const char **argv) {
     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));