[LLVMbugs] [Bug 2623] New: Assertion failure calling function with struct-typed phi value

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Aug 1 08:49:59 PDT 2008


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

           Summary: Assertion failure calling function with struct-typed phi
                    value
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: csdavec at swan.ac.uk
                CC: llvmbugs at cs.uiuc.edu


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

Compiling the attached bitcode produces the following error:

$ llc bugpoint-reduced-simplified.bc 
Assertion failed: (0 && "Unknown type!"), function getMVT, file ValueTypes.cpp,
line 109.

The same error appears when it's compiled using the JIT.  It appears to be
related to the phi node, since generating the same function call without a
value which was returned directly from a function (not accessed via a phi
instruction) compiles and generates the correct (ABI-compliant) code.


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