You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL][NFC] Avoid nullptr dereferencing of YDimExpr and ZDimExpr (#4367)
Add assert that arguments of work_group_size attributes cannot be nullptr
Klocwork exposed a (false positive) bug that nullptr derferencing of
YDimExpr and ZDimExpr is possible for non sycl:: usage.
This is not practically possible because such (OpenCL and cl::) spellings
of the attribute require three arguments.
This patch
1. Removes the ability of SetDefaultValue lambda to return nullptr
2. Asserts in SetDefaultValue that it is not possible for sycl:: case
to have NULL arguments
3. Moves error checking for three arguments for OpenCL and cl:: cases
ahead of the assert
4. Removes check for intel::reqd_work_group_size spelling
0 commit comments