[cfe-dev] assertion failure on a valid C code

Chris Lattner clattner at apple.com
Wed Oct 22 14:19:19 PDT 2008


On Oct 22, 2008, at 2:14 PM, Roman Divacky wrote:

> hi
>
> I got another assertion failure :)
>
> on freebsd/i386 I am getting this:
>
>
> witten /tmp# cat semctl.c
> #include <stdarg.h>
>
> union semun {
>        int             val;            /* value for SETVAL */
>        unsigned short  *array;         /* array for GETALL & SETALL */
> };
>
>
> int semctl(int semid, int semnum, int cmd, ...)
> {
>        va_list ap;
>        union semun semun;
>
>        va_start(ap, cmd);
>                semun = va_arg(ap, union semun);
>        va_end(ap);
> }
> witten /tmp# ccc semctl.c
> Assertion failed: (0 && "Unknown type!"), function getMVT, file  
> ValueTypes.cpp, line 109.
> witten /tmp#
>
>
> should I just file a bugzilla entry?

Does this fail when you use -emit-llvm?  If not, please also attach  
the .ll/.bc file to the bugzilla.

-Chris



More information about the cfe-dev mailing list