[LLVMbugs] [Bug 2939] New: Assertion failed: (0 && "Unknown type!"), function getMVT, file ValueTypes.cpp, line 109.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Oct 23 10:33:02 PDT 2008


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: unassignedbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list