Skip to content

llvm-as should catch zero width vector #4057

@nlewycky

Description

@nlewycky
Bugzilla Link 3685
Resolution FIXED
Resolved on Feb 28, 2009 12:13
Version trunk
OS Linux

Extended Description

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"' failed.
0 llvm-as 0x081a40fd
1 llvm-as 0x081a447b
2 0xffffe400 __kernel_sigreturn + 0
Aborted

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions