]> granicus.if.org Git - clang/commitdiff
Fixes compilation with Visual Studio by replacing the non-standard vector::data(...
authorManuel Klimek <klimek@google.com>
Tue, 10 May 2011 00:58:12 +0000 (00:58 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 10 May 2011 00:58:12 +0000 (00:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131116 91177308-0d34-0410-b5e6-96231b3b80d8

examples/Tooling/ClangCheck.cpp

index 41283759a104113cec927664ba4adde5dd811d8c..0dfa53d44e642f5cbbcd6626df6ba23427e72eba 100644 (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 {