[cfe-dev] Curious error

John McCall rjmccall at apple.com
Tue Mar 29 11:26:37 PDT 2011


On Mar 29, 2011, at 11:14 AM, John Thompson wrote:
> I got this error in building for Windows with Visual Studio (examples\clang-interpreter\main.cpp):
> 104>.\main.cpp(89) : error C2660: 'clang::driver::Driver::BuildCompilation' : function does not take 2 argumentsI
> 
> The fix was:
>  
> Index: main.cpp
> ===================================================================
> --- main.cpp    (revision 128469)
> +++ main.cpp    (working copy)
> @@ -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;
> I've had it for about a week, so I'm curious that it didn't seem to show up in the non-Windows builds on the buildbot.  Hence I thought I should check here before checking it in.

I think the buildbots don't include examples/ for some reason.

Thanks for fixing this.

John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110329/7c53308b/attachment.html>


More information about the cfe-dev mailing list