Skip to content

Commit 6e9ca08

Browse files
committed
add empty marco check for device report mem
Signed-off-by: jinge90 <ge.jin@intel.com>
1 parent 6c07bb1 commit 6e9ca08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libdevice/sanitizer_utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ bool __asan_region_is_value(uptr addr, int32_t as, std::size_t size,
260260
#if __SYCL_DEVICE_ONLY__
261261
#define __DEVICE_SANITIZER_REPORT_ACCESSOR __DeviceSanitizerReportMem.get()
262262
#else
263+
#define __DEVICE_SANITIZER_REPORT_ACCESSOR
263264
#endif
264265

265266
static void __asan_internal_report_save(

0 commit comments

Comments
 (0)