@@ -675,9 +675,8 @@ constexpr size_t AlignMask(size_t n) { return n - 1; }
675675 DEVICE_EXTERN_C_NOINLINE void __asan_##type##size##_as##as( \
676676 uptr addr, const char __SYCL_CONSTANT__ *file, uint32_t line, \
677677 const char __SYCL_CONSTANT__ *func) { \
678- if (!__AsanLaunchInfo) { \
678+ if (!__AsanLaunchInfo) \
679679 return ; \
680- } \
681680 if (addr & AlignMask (size)) { \
682681 __asan_report_misalign_error (addr, as, size, is_write, addr, file, line, \
683682 func); \
@@ -690,9 +689,8 @@ constexpr size_t AlignMask(size_t n) { return n - 1; }
690689 DEVICE_EXTERN_C_NOINLINE void __asan_##type##size##_as##as##_noabort( \
691690 uptr addr, const char __SYCL_CONSTANT__ *file, uint32_t line, \
692691 const char __SYCL_CONSTANT__ *func) { \
693- if (!__AsanLaunchInfo) { \
692+ if (!__AsanLaunchInfo) \
694693 return ; \
695- } \
696694 if (addr & AlignMask (size)) { \
697695 __asan_report_misalign_error (addr, as, size, is_write, addr, file, line, \
698696 func, true ); \
@@ -725,9 +723,8 @@ ASAN_REPORT_ERROR(store, true, 16)
725723 DEVICE_EXTERN_C_NOINLINE void __asan_##type##N_as##as( \
726724 uptr addr, size_t size, const char __SYCL_CONSTANT__ *file, \
727725 uint32_t line, const char __SYCL_CONSTANT__ *func) { \
728- if (!__AsanLaunchInfo) { \
726+ if (!__AsanLaunchInfo) \
729727 return ; \
730- } \
731728 if (auto poisoned_addr = __asan_region_is_poisoned (addr, as, size)) { \
732729 __asan_report_access_error (addr, as, size, is_write, poisoned_addr, \
733730 file, line, func); \
@@ -736,9 +733,8 @@ ASAN_REPORT_ERROR(store, true, 16)
736733 DEVICE_EXTERN_C_NOINLINE void __asan_##type##N_as##as##_noabort( \
737734 uptr addr, size_t size, const char __SYCL_CONSTANT__ *file, \
738735 uint32_t line, const char __SYCL_CONSTANT__ *func) { \
739- if (!__AsanLaunchInfo) { \
736+ if (!__AsanLaunchInfo) \
740737 return ; \
741- } \
742738 if (auto poisoned_addr = __asan_region_is_poisoned (addr, as, size)) { \
743739 __asan_report_access_error (addr, as, size, is_write, poisoned_addr, \
744740 file, line, func, true ); \
@@ -760,9 +756,9 @@ ASAN_REPORT_ERROR_N(store, true)
760756// /
761757
762758DEVICE_EXTERN_C_NOINLINE uptr __asan_mem_to_shadow(uptr ptr, uint32_t as) {
763- if (!__AsanLaunchInfo) {
759+ if (!__AsanLaunchInfo)
764760 return 0 ;
765- }
761+
766762 return MemToShadow (ptr, as);
767763}
768764
@@ -776,9 +772,8 @@ static __SYCL_CONSTANT__ const char __mem_set_shadow_local[] =
776772DEVICE_EXTERN_C_NOINLINE void
777773__asan_set_shadow_static_local (uptr ptr, size_t size,
778774 size_t size_with_redzone) {
779- if (!__AsanLaunchInfo) {
775+ if (!__AsanLaunchInfo)
780776 return ;
781- }
782777
783778 // Since ptr is aligned to ASAN_SHADOW_GRANULARITY,
784779 // if size != aligned_size, then the buffer tail of ptr is not aligned
@@ -819,9 +814,8 @@ static __SYCL_CONSTANT__ const char __mem_unpoison_shadow_static_local_end[] =
819814DEVICE_EXTERN_C_NOINLINE void
820815__asan_unpoison_shadow_static_local (uptr ptr, size_t size,
821816 size_t size_with_redzone) {
822- if (!__AsanLaunchInfo) {
817+ if (!__AsanLaunchInfo)
823818 return ;
824- }
825819
826820 ASAN_DEBUG (__spirv_ocl_printf (__mem_unpoison_shadow_static_local_begin));
827821
@@ -856,9 +850,8 @@ static __SYCL_CONSTANT__ const char __mem_report_arg_count_incorrect[] =
856850
857851DEVICE_EXTERN_C_NOINLINE void
858852__asan_set_shadow_dynamic_local (uptr ptr, uint32_t num_args) {
859- if (!__AsanLaunchInfo) {
853+ if (!__AsanLaunchInfo)
860854 return ;
861- }
862855
863856 ASAN_DEBUG (__spirv_ocl_printf (__mem_set_shadow_dynamic_local_begin));
864857
@@ -891,9 +884,8 @@ static __SYCL_CONSTANT__ const char __mem_unpoison_shadow_dynamic_local_end[] =
891884
892885DEVICE_EXTERN_C_NOINLINE void
893886__asan_unpoison_shadow_dynamic_local (uptr ptr, uint32_t num_args) {
894- if (!__AsanLaunchInfo) {
887+ if (!__AsanLaunchInfo)
895888 return ;
896- }
897889
898890 ASAN_DEBUG (__spirv_ocl_printf (__mem_unpoison_shadow_dynamic_local_begin));
899891
@@ -931,9 +923,8 @@ static __SYCL_CONSTANT__ const char __mem_set_shadow_private[] =
931923
932924DEVICE_EXTERN_C_NOINLINE void __asan_set_shadow_private (uptr begin, uptr size,
933925 char val) {
934- if (!__AsanLaunchInfo) {
926+ if (!__AsanLaunchInfo)
935927 return ;
936- }
937928
938929 ASAN_DEBUG (__spirv_ocl_printf (__mem_set_shadow_private_begin));
939930
0 commit comments