Skip to content

[SYCL] Fix kernel argument cast kind #914

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

Merged
merged 1 commit into from
Dec 6, 2019

Conversation

asavonic
Copy link
Contributor

@asavonic asavonic commented Dec 6, 2019

We insert a cast in SemaSYCL only if address spaces of pointee types
are different. However, ImplicitCastExpr checks for pointee types only
if the cast is RValue.

This patch fixes a regression when this check is enabled: a29aa47#diff-dac09655ff6a54658c320a28a6ea297cR1817

Signed-off-by: Andrew Savonichev [email protected]

We insert a cast in SemaSYCL only if address spaces of pointee types
are different. However, ImplicitCastExpr checks for pointee types only
if the cast is RValue.

Signed-off-by: Andrew Savonichev <[email protected]>
@bader bader merged commit 1e4c915 into intel:sycl Dec 6, 2019
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.

4 participants