From: John Thompson Date: Tue, 29 Mar 2011 18:31:21 +0000 (+0000) Subject: Fixed build error. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=903dec2a0d96e4fc370050c204fe6aa27f29f6ab;p=clang Fixed build error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128470 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp index a99766f9a3..ad39ecec9b 100644 --- a/examples/clang-interpreter/main.cpp +++ b/examples/clang-interpreter/main.cpp @@ -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 Args(argv, argv + argc); Args.push_back("-fsyntax-only"); - llvm::OwningPtr C(TheDriver.BuildCompilation(Args.size(), - Args.data())); + llvm::OwningPtr C(TheDriver.BuildCompilation(Args)); if (!C) return 0;