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

             Bug #: 14050
           Summary: SRet crashes JIT::runFunction()
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Target-Independent JIT
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Created attachment 9326
  --> http://llvm.org/bugs/attachment.cgi?id=9326
Reproducer

Hi,

attached example, executed on Linux i686 (!), crashes likely due to the caller
and callee disagreeing on the stack layout / call setup / SRet passing.
Commenting JIT.cpp 406-451 (the shortcuts for the common cases) makes it work.

Should there be a "&& ! F->hasStructRetAttr()" in that shortcut condition, line
406?

Axel.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to