Skip to content

Remove incorrect pointer cast in volatile_load intrinsic#244

Merged
LegNeato merged 1 commit intoRust-GPU:mainfrom
LegNeato:sha
Aug 7, 2025
Merged

Remove incorrect pointer cast in volatile_load intrinsic#244
LegNeato merged 1 commit intoRust-GPU:mainfrom
LegNeato:sha

Conversation

@LegNeato
Copy link
Copy Markdown
Contributor

@LegNeato LegNeato commented Aug 7, 2025

The PassMode::Cast check was incorrectly casting the input pointer based on the return value's ABI mode. This is wrong because volatile_load reads raw memory at the pointer's target type...any ABI transformations should happen after loading, not on the pointer itself.

The PassMode::Cast check was incorrectly casting the input pointer based
on the return value's ABI mode. This is wrong because `volatile_load` reads
raw memory at the pointer's target type...any ABI transformations should
happen after loading, not on the pointer itself.
@LegNeato LegNeato merged commit 9fa4487 into Rust-GPU:main Aug 7, 2025
8 checks passed
@LegNeato LegNeato deleted the sha branch August 7, 2025 22:28
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.

1 participant