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

ispc opened this issue Jun 22, 2011 · 0 comments


None yet
1 participant
Copy link

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