[cfe-dev] Arrays aren't pointers codegen assert

Chris Lattner clattner at apple.com
Tue Dec 11 20:13:24 PST 2007


On Dec 10, 2007, at 7:00 PM, Keith Bauer wrote:

> extern void go(const void *p);
> float v[2] = { 0.0, 1.0 };
> void foo(void) { go(v); }
>
>
> CookieJar:Desktop keith$ clang -emit-llvm arrayvsptr.c
> Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i)
> == Params[i]->getType()) && "Calling a function with a bad
> signature!"), function init, file Instructions.cpp, line 239.

Fixed, thanks!

-Chris



More information about the cfe-dev mailing list