From 903dec2a0d96e4fc370050c204fe6aa27f29f6ab Mon Sep 17 00:00:00 2001 From: John Thompson Date: Tue, 29 Mar 2011 18:31:21 +0000 Subject: [PATCH] Fixed build error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128470 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/clang-interpreter/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.40.0