Skip to content

[SYCL][NFC] Code clean up revealed by self build. #2987

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
Jan 12, 2021

Conversation

zahiraam
Copy link
Contributor

@zahiraam zahiraam commented Jan 4, 2021

No description provided.

@romanovvlad romanovvlad merged commit 0983121 into intel:sycl Jan 12, 2021
jsji pushed a commit that referenced this pull request Feb 25, 2025
Not all SPIRVValue are SPIRVInstruction. For example, a SPIRVType is a SPIRVValue but not a SPIRVInstruction, so the cast is undefined behavior. Prevent invalid casts by checking if SV is indeed a SPIRVInstruction before doing the cast.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@cadedfbbbf8cf1c
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.

5 participants