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

[SYCL][Graph] Fix switch statement for Clang build #10923

Merged
merged 3 commits into from
Aug 22, 2023

Conversation

EwanC
Copy link
Contributor

@EwanC EwanC commented Aug 22, 2023

After the merge of #10789 post-commit CI is failing on clang builds:

/Users/runner/work/llvm/llvm/build/include/sycl/ext/oneapi/experimental/graph.hpp:67:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  default:

Fixed by removing the default label from the switch, and replacing with an assert false afterwards, which seems consistent with other places in the sycl runtime.

After the merge of intel#10789
post-commit CI is failing on clang builds:

* [MacOS build](https://github.com/intel/llvm/actions/runs/5935599091/job/16094354219)
* [Linux
build](https://github.com/intel/llvm/actions/runs/5935599091/job/16094354500)

```
/Users/runner/work/llvm/llvm/build/include/sycl/ext/oneapi/experimental/graph.hpp:67:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  default:
```

Fixed by removing the default label from the `switch`, and replacing
with an assert `false` afterwards, which seems consistent with other
places in the sycl runtime.

I haven't done a clang build yet to verify this fix.
@EwanC EwanC marked this pull request as ready for review August 22, 2023 08:45
@EwanC EwanC requested a review from a team as a code owner August 22, 2023 08:45
@EwanC EwanC requested a review from steffenlarsen August 22, 2023 08:46
@steffenlarsen steffenlarsen merged commit dab2cc8 into intel:sycl Aug 22, 2023
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.

3 participants