[LLVMbugs] [Bug 2060] New: llvm-as crash

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 18 16:06:49 PST 2008


           Summary: llvm-as crash
           Product: tools
           Version: 2.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: llvm-as
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=1425)
 --> (http://llvm.org/bugs/attachment.cgi?id=1425)
Crashing .ll file

llvm-as crashes on the following program instead of giving a type error:
define i8* @foo() {
        ret i8* 0
assert log:
ddunbar at ozzy:lli$ llvm-as bug.ll
llvm-as: /home/ddunbar/public/llvm/llvm/include/llvm/Support/Casting.h:199:
typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
llvm::IntegerType, Y = const llvm::Type*]: Assertion `isa<X>(Val) &&
"cast<Ty>() argument of incompatible type!"' failed.
llvm-as((anonymous namespace)::PrintStackTrace()+0x1a)[0x817ac7a]
llvm-as(llvm::ConstantInt::isValueValidForType(llvm::Type const*, long
tested on 2.2 and 2.1

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