From: Manuel Klimek Date: Tue, 10 May 2011 00:58:12 +0000 (+0000) Subject: Fixes compilation with Visual Studio by replacing the non-standard vector::data(... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da69b450b4d41d45808aa745cdb1cfc9fbfcc4f1;p=clang Fixes compilation with Visual Studio by replacing the non-standard vector::data() access. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131116 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/Tooling/ClangCheck.cpp b/examples/Tooling/ClangCheck.cpp index 41283759a1..0dfa53d44e 100644 --- a/examples/Tooling/ClangCheck.cpp +++ b/examples/Tooling/ClangCheck.cpp @@ -96,8 +96,8 @@ int main(int argc, char **argv) { if (!clang::tooling::RunToolWithFlags( new clang::SyntaxOnlyAction, LookupResult.CommandLine.size(), - clang::tooling::CommandLineToArgv( - &LookupResult.CommandLine).data())) { + &clang::tooling::CommandLineToArgv( + &LookupResult.CommandLine)[0])) { llvm::outs() << "Error while processing " << File << ".\n"; } } else {