Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing structs on the stack from C/C++ code is broken #3

Open
ispc opened this issue Jun 22, 2011 · 0 comments

Comments

Projects
None yet
1 participant
@ispc
Copy link
Owner

commented Jun 22, 2011

Passing structs on the stack from the app code to ispc code gives garbled data. I believe that the underlying issue is the one brought up in this LLVM mailing list discussion (http://old.nabble.com/struct-passing-on-X86-64-td31812612.html)--some x86_64 ABI weirdness. Passing structs in this manner is currently caught by lCheckForStructParameters() in module.cpp (and an error is issued), but it'd be nice to make this work someday. (Though in general, we expect people to pass structs by reference most of the time anyway...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.