[llvm-commits] Patch to fix byval parameters in the MSP430 backend

Job Noorman job.noorman at cs.kuleuven.be
Tue Oct 16 06:37:22 PDT 2012


I also posted this on the bugzilla: http://llvm.org/bugs/show_bug.cgi?id=14096

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

I have attached a simple patch that addresses this problem.
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: byval.diff
Type: text/x-patch
Size: 3959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121016/468d0627/attachment.bin>


More information about the llvm-commits mailing list