[cfe-commits] r128470 - /cfe/trunk/examples/clang-interpreter/main.cpp

John Thompson John.Thompson.JTSoftware at gmail.com
Tue Mar 29 11:31:21 PDT 2011


Author: jtsoftware
Date: Tue Mar 29 13:31:21 2011
New Revision: 128470

URL: http://llvm.org/viewvc/llvm-project?rev=128470&view=rev
Log:
Fixed build error.

Modified:
    cfe/trunk/examples/clang-interpreter/main.cpp

Modified: cfe/trunk/examples/clang-interpreter/main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp?rev=128470&r1=128469&r2=128470&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Tue Mar 29 13:31:21 2011
@@ -85,8 +85,7 @@
   // (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;
 





More information about the cfe-commits mailing list