]> granicus.if.org Git - clang/commitdiff
Fixed build error.
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Tue, 29 Mar 2011 18:31:21 +0000 (18:31 +0000)
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Tue, 29 Mar 2011 18:31:21 +0000 (18:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128470 91177308-0d34-0410-b5e6-96231b3b80d8

examples/clang-interpreter/main.cpp

index a99766f9a31481bc3930b0e8a6bb938679530a75..ad39ecec9bd32f43d152996407163a38f839fddd 100644 (file)
@@ -85,8 +85,7 @@ int main(int argc, const char **argv, char * const *envp) {
   // (basically, exactly one input, and the operation mode is hard wired).
   llvm::SmallVector<const char *, 16> Args(argv, argv + argc);
   Args.push_back("-fsyntax-only");
-  llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args.size(),
-                                                            Args.data()));
+  llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args));
   if (!C)
     return 0;