File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -905,7 +905,8 @@ static __SYCL_CONSTANT__ const char __asan_print_private_base[] =
905905DEVICE_EXTERN_C_NOINLINE void
906906__asan_set_private_base (__SYCL_PRIVATE__ void *ptr) {
907907 auto launch_info = (__SYCL_GLOBAL__ const AsanRuntimeData *)__AsanLaunchInfo;
908- if (!launch_info || launch_info->PrivateShadowOffset == 0 )
908+ if (!launch_info || launch_info->PrivateShadowOffset == 0 ||
909+ launch_info->PrivateBase == 0 )
909910 return ;
910911 // Only set on the first sub-group item
911912 if (__spirv_BuiltInSubgroupLocalInvocationId != 0 )
Original file line number Diff line number Diff line change @@ -578,7 +578,8 @@ static __SYCL_CONSTANT__ const char __msan_print_private_base[] =
578578
579579DEVICE_EXTERN_C_NOINLINE void
580580__msan_set_private_base (__SYCL_PRIVATE__ void *ptr) {
581- if (!GetMsanLaunchInfo || GetMsanLaunchInfo->PrivateShadowOffset == 0 )
581+ if (!GetMsanLaunchInfo || GetMsanLaunchInfo->PrivateShadowOffset == 0 ||
582+ GetMsanLaunchInfo->PrivateBase == 0 )
582583 return ;
583584 // Only set on the first sub-group item
584585 if (__spirv_BuiltInSubgroupLocalInvocationId != 0 )
You can’t perform that action at this time.
0 commit comments