Skip to content

Commit f32be78

Browse files
committed
fix build
1 parent 80de8a0 commit f32be78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libdevice/sanitizer/msan_rtl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ MSAN_MAYBE_WARNING(u32, 4)
157157
MSAN_MAYBE_WARNING(u64, 8)
158158

159159
DEVICE_EXTERN_C_NOINLINE uptr __msan_get_shadow(uptr addr, uint32_t as) {
160-
if (!__MsanLaunchInfo.get())
161-
return;
162-
163160
// Return clean shadow (0s) by default
164161
uptr shadow_ptr = (uptr)CleanShadow;
165162

163+
if (!__MsanLaunchInfo.get())
164+
return shadow_ptr;
165+
166166
if (UNLIKELY(!__MsanLaunchInfo)) {
167167
__spirv_ocl_printf(__msan_print_warning_nolaunchinfo);
168168
return shadow_ptr;

0 commit comments

Comments
 (0)