Skip to content

Commit 30d1f12

Browse files
committed
Move return
1 parent 0935ed2 commit 30d1f12

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ using namespace __asan;
2424

2525
// AIX does not intercept memcpy, so we have to use internal_memcpy.
2626
#if !SANITIZER_AIX
27-
# define ASAN_MEMCPY_RETURN(to, from, size) return REAL(memcpy)(to, from, size)
27+
# define ASAN_MEMCPY_RETURN(to, from, size) REAL(memcpy)(to, from, size)
2828
#else
29-
# define ASAN_MEMCPY_RETURN(to, from, size) \
30-
return internal_memcpy(to, from, size)
29+
# define ASAN_MEMCPY_RETURN(to, from, size) internal_memcpy(to, from, size)
3130
#endif
3231

3332
// memcpy is called during __asan_init() from the internals of printf(...).
@@ -44,7 +43,7 @@ using namespace __asan;
4443
} else if (UNLIKELY(!AsanInited())) { \
4544
return internal_memcpy(to, from, size); \
4645
} \
47-
ASAN_MEMCPY_RETURN(to, from, size); \
46+
return ASAN_MEMCPY_RETURN(to, from, size); \
4847
} while (0)
4948

5049
// memset is called inside Printf.

0 commit comments

Comments
 (0)