summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2011-05-10 00:58:12 +0000
committerManuel Klimek <klimek@google.com>2011-05-10 00:58:12 +0000
commitda69b450b4d41d45808aa745cdb1cfc9fbfcc4f1 (patch)
tree4e100c38092e64768b86e04b40f6e025d3a16b3b /examples
parent001cad932380419c6fbfecbeec63e0579f5ecbf3 (diff)
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
Diffstat (limited to 'examples')
-rw-r--r--examples/Tooling/ClangCheck.cpp4
1 files changed, 2 insertions, 2 deletions
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 {