-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
user_context has inconsistent const qualifiers #635
Comments
Update, several years later: amazingly, this usually isn't an issue, but:
...we get link errors because of this dichotomy, since the caller expects Fixing this "correctly" (ie so that everything always uses identical types for user_context in all cases) will require a lot of downstream churn. Since the existing user_context design is already considered to be suboptimal in a number of ways (see #7298), it doesn't really make sense to try to spend effort to update this without addressing the other issues. #7291 is a somewhat awkward workaround to "fix" the link errors mentioned above, but definitely no better than a workaround. |
…alide#7291) Add a workaround for the const-or-not user_context issue (halide#635)
Function declarations (from CodeGen_C.cpp) emit function prototypes with it declared as "const void_", but all the runtime callbacks declare it as "void_".
The text was updated successfully, but these errors were encountered: