http://llvm.org/bugs/show_bug.cgi?id=2939

           Summary: Assertion failed: (0 && "Unknown type!"), function
                    getMVT, file ValueTypes.cpp, line 109.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


this simple program crashes clang, but clang -emit-llvm works so I believe the
problem is else where:

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.

.ll file attached


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to