[LLVMdev] Blocks/Closures + Clang + LLVM

Chris Lattner clattner at apple.com
Tue Oct 28 10:51:26 PDT 2008


On Oct 28, 2008, at 10:34 AM, Nico wrote:

> Hi,
>
> I tried the little examples from here:
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-August/002670.html
>
> clang -fsyntax-only worked fine, but clang -emit-llvm had problems:
> Assertion failed: (0 && "FIXME: Cannot get type of block pointer."),
> function ConvertNewType, file CodeGenTypes.cpp, line 329.
>
> I use svn revision 58329. Is it just a temporary problem or did it not
> work at all?
> Do I miss something?

Clang doesn't support code generation for blocks yet.  Please try out  
llvm-gcc, which does.

-Chris



More information about the llvm-dev mailing list