From: Daniel Dunbar Date: Tue, 26 May 2009 18:00:25 +0000 (+0000) Subject: Revert to using &...[0] for std::vector, apparently .data isn't generally X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0311d47665bcdd186af6fc1bcfa40cf186ae7b9a;p=clang Revert to using &...[0] for std::vector, apparently .data isn't generally 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 --- diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index cc89b0a031..804bef4058 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp @@ -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 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));