forked from OSchip/llvm-project
Fixes compilation with Visual Studio by replacing the non-standard vector::data() access.
llvm-svn: 131116
This commit is contained in:
parent
6d5b96c6b3
commit
ffecc6b9c2
|
@ -96,8 +96,8 @@ int main(int argc, char **argv) {
|
||||||
if (!clang::tooling::RunToolWithFlags(
|
if (!clang::tooling::RunToolWithFlags(
|
||||||
new clang::SyntaxOnlyAction,
|
new clang::SyntaxOnlyAction,
|
||||||
LookupResult.CommandLine.size(),
|
LookupResult.CommandLine.size(),
|
||||||
clang::tooling::CommandLineToArgv(
|
&clang::tooling::CommandLineToArgv(
|
||||||
&LookupResult.CommandLine).data())) {
|
&LookupResult.CommandLine)[0])) {
|
||||||
llvm::outs() << "Error while processing " << File << ".\n";
|
llvm::outs() << "Error while processing " << File << ".\n";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue