From 0311d47665bcdd186af6fc1bcfa40cf186ae7b9a Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 26 May 2009 18:00:25 +0000 Subject: [PATCH] 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 --- tools/driver/driver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.40.0