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

Forbid assigning to Buffer(Expr) by introducing an intermediate type. #7517

Merged
merged 3 commits into from
Apr 19, 2023

Conversation

abadams
Copy link
Member

@abadams abadams commented Apr 17, 2023

Fixes #7514 by triggering a compile-time error instead of silently doing something surprising.

Copy link
Contributor

@steven-johnson steven-johnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- should we add an error-test to verify it stays broken?

@abadams
Copy link
Member Author

abadams commented Apr 17, 2023

The issue is that it's a C++ compile-time failure, not a Halide compile-time failure, so I don't think an error test is possible.

@steven-johnson
Copy link
Contributor

Ready to land?

@abadams abadams merged commit 294f80c into main Apr 19, 2023
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
…halide#7517)

* Forbid assigning to Buffer(Expr) by introducing an intermediate type.

Fixes halide#7514

* Simpler solution

* Silence clang-tidy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update definition of Buffer takes precedence over any prior usage
2 participants