[LLVMbugs] [Bug 3304] New: Crash in RewriteStoreUserOfWholeAlloca

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jan 9 04:06:34 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=3304

           Summary: Crash in RewriteStoreUserOfWholeAlloca
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


$ opt -scalarrepl x.bc -disable-output
opt: lib/VMCore/Type.cpp:1023: static const llvm::IntegerType*
llvm::IntegerType::get(unsigned int): Assertion `NumBits >= MIN_INT_BITS &&
"bitwidth too small"' failed.
...
The bitwidth is zero!  Doubtless due to the empty struct type.  Testcase:

        %struct.c37304a__vrec = type { i8, %struct.c37304a__vrec___disc___XVN }
        %struct.c37304a__vrec___disc___XVN = type {
%struct.c37304a__vrec___disc___XVN___O }
        %struct.c37304a__vrec___disc___XVN___O = type {  }

define void @_ada_c37304a() {
entry:
        %v = alloca %struct.c37304a__vrec               ;
<%struct.c37304a__vrec*> [#uses=1]
        %0 = getelementptr %struct.c37304a__vrec* %v, i32 0, i32 0             
; <i8*> [#uses=1]
        store i8 8, i8* %0, align 1
        unreachable
}


-- 
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