From: Daniel Dunbar Date: Tue, 26 May 2009 17:13:50 +0000 (+0000) Subject: Use .data() vs &...[0] X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=549adebb1cef65778c0f2ba8dacd0c7511711b03;p=clang Use .data() vs &...[0] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72420 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index 804bef4058..cc89b0a031 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[0])); + StringPointers.data())); } 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[0])); + StringPointers.data())); } else C.reset(TheDriver.BuildCompilation(argc, argv));