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

Clone name hint decoration when emiting Undefined #6415

Conversation

jkwak-work
Copy link
Collaborator

When emiting "Undefined", we lost the information of where it was synthasized from. This prevents us from providing more helpful error messages.

The issue was the when we handle "IRLoop", the inputs parameters to the Phi didn't clone the name hint decoration. This commit clones them when emiting "Undefined".

Closes #6305

@jkwak-work jkwak-work added the pr: non-breaking PRs without breaking changes label Feb 20, 2025
@jkwak-work jkwak-work self-assigned this Feb 20, 2025
@jkwak-work jkwak-work requested a review from a team as a code owner February 20, 2025 20:47
When emiting "Undefined", we lost the information of where it was
synthasized from. This prevents us from providing more helpful error
messages.

The issue was the when we handle "IRLoop", the inputs parameters to the
Phi didn't clone the name hint decoration. This commit clones them when
emiting "Undefined".
@jkwak-work jkwak-work force-pushed the fix/print_error_message_with_variable_name_when_uninitialized branch from cb45688 to a36c049 Compare February 21, 2025 17:58
@jkwak-work jkwak-work force-pushed the fix/print_error_message_with_variable_name_when_uninitialized branch from a36c049 to 664d3b7 Compare February 21, 2025 18:01
@csyonghe csyonghe merged commit f90a763 into shader-slang:master Feb 25, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Variable name is not printed on the error message when it is uninitialized
2 participants