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

Keith Bauer onesadcookie at gmail.com
Mon Dec 10 19:00:41 PST 2007


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.


-Keith



More information about the cfe-dev mailing list