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
Replace illegal address space casts asserts with errors
Purpose of this patch is to make the translator a little bit more
user-friendly. For example following SYCL code:
SYCL_EXTERNAL sycl::global_ptr<int> kernel_fun(int *ptr) {
return sycl::global_ptr<int>((int*)&ptr);
}
is UB since it has an implicit cast from private address space to
global. It's hard to detect such UB in FE, hence this diagnostic is
moved to the translator (which already had it, but in form of an
assert).
Signed-off-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
0 commit comments