[LLVMbugs] [Bug 463] NEW: LL-AS does not handle zezo initialized unknown types gracefully "Reference to an invalid type"

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Nov 28 07:09:26 PST 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=463

           Summary: LL-AS does not handle zezo initialized unknown types
                    gracefully  "Reference to an invalid type"
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-as
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: mdupont777 at yahoo.com


The error should be this :Reference to an invalid type: 'struct.none
Here is the line : 
%.FOO  = internal global %struct.none zeroinitializer

llvm-as: Constants.cpp:127: static llvm::Constant*
llvm::Constant::getNullValue(const llvm::Type*): Assertion `!"Cannot create a
null constant of that type!"' failed.
llvm-as((anonymous namespace)::PrintStackTrace()+0x1a)[0x82a232e]
llvm-as((anonymous namespace)::SignalHandler(int)+0xcb)[0x82a25a1]
/lib/libc.so.6[0x40132658]
/lib/libc.so.6(abort+0x178)[0x401339e8]
/lib/libc.so.6(__assert_fail+0x10f)[0x4012bb3f]
llvm-as(llvm::Constant::getNullValue(llvm::Type const*)+0x30c)[0x81def66]
llvm-as(llvmAsmparse()+0x43a9)[0x81a087d]
llvm-as(llvm::RunVMAsmParser(std::string const&, _IO_FILE*)+0x95)[0x819b821]
llvm-as(llvm::ParseAssemblyFile(std::string const&)+0x151)[0x819873d]
llvm-as(main+0x47)[0x8193e5b]
/lib/libc.so.6(__libc_start_main+0xc6)[0x4011edc6]
llvm-as(std::basic_ostream<char, std::char_traits<char> >& std::operator<<
<std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&,
char)+0x49)[0x8193d71]
Aborted



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list