Skip to content

Commit 45f48f5

Browse files
committed
fix build
1 parent 2aff1e3 commit 45f48f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libdevice/sanitizer/msan_rtl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ inline uptr __msan_get_shadow_pvc(uptr addr, uint32_t as) {
137137
auto shadow_end = ((__SYCL_GLOBAL__ MsanLaunchInfo *)__MsanLaunchInfo.get())
138138
->GlobalShadowOffsetEnd;
139139
if (addr < shadow_begin) {
140-
return Ptr + (shadow_begin - 0xff00'0000'0000'0000ULL);
140+
return addr + (shadow_begin - 0xff00'0000'0000'0000ULL);
141141
} else {
142-
return Ptr - (0xff00'ffff'ffff'ffffULL - shadow_end);
142+
return addr - (0xff00'ffff'ffff'ffffULL - shadow_end);
143143
}
144144
}
145145

0 commit comments

Comments
 (0)