Fixes compilation with Visual Studio by replacing the non-standard vector::data() access.

llvm-svn: 131116
This commit is contained in:
Manuel Klimek 2011-05-10 00:58:12 +00:00
parent 6d5b96c6b3
commit ffecc6b9c2
1 changed files with 2 additions and 2 deletions

View File

@ -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 {