[LLVMbugs] [Bug 4170] New: llc crashes when emitting code for variable sized ( zero length) array

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed May 6 18:20:05 PDT 2009


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

           Summary: llc crashes when emitting code for variable sized (zero
                    length) array
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jvb at wongr.net
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2967)
 --> (http://llvm.org/bugs/attachment.cgi?id=2967)
test case

Hi

llc crashes on this test case with an assertion failure (.bc file is attached)

define void @test([0 x i32] %x) {
entry:
        %y = extractvalue [0 x i32] %x, 0
        ret void
}

llc:
/home/julian/rcs-data/llvm-svn/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:4011:
llvm::SDVTList llvm::SelectionDAG::getVTList(const llvm::MVT*, unsigned int):
Assertion `0 && "Cannot have nodes without results!"' failed.

I am using a fresh SVN checkout:
$ llc --version
Low Level Virtual Machine (http://llvm.org/):
  llvm version 2.6svn
  Optimized build with assertions.
  Built May  7 2009(01:19:30).


I am not very familiar with the internals of LLVM but the problem might be that
ComputeValueVTs in SelectionDAGBuild.cpp thinks that a zero length array
comprises of no types.


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