[LLVMbugs] [Bug 14096] New: Fix for byval parameters

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 16 05:56:37 PDT 2012


             Bug #: 14096
           Summary: Fix for byval parameters
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: MSP430
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jobnoorman at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

I noticed that the 'byval' parameter attribute is ignored in the MSP430 
backend. This causes functions that take a struct as argument to miscompile. 
Specifically, structs that should be passed by value are passed as a pointer 

I have attached a simple patch that addresses this problem.

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