[LLVMbugs] [Bug 3685] New: llvm-as should catch zero width vector

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Feb 28 09:37:56 PST 2009


           Summary: llvm-as should catch zero width vector
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-as
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu

This .ll file:

  @a = internal constant void bitcast(<0 x i8> <> to void)

produces an assertion:

llvm-as: Type.cpp:504: llvm::VectorType::VectorType(const llvm::Type*, unsigned
int): Assertion `NumEl > 0 && "NumEl of a VectorType must be greater than 0"'
0   llvm-as 0x081a40fd
1   llvm-as 0x081a447b
2           0xffffe400 __kernel_sigreturn + 0

Well, yeah. :-) llvm-as should emit a polite error message instead.

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