Skip to content

Commit 7cc64a1

Browse files
committed
Fix undeclared identifier
1 parent 878a567 commit 7cc64a1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ using namespace __asan;
3737
} else if (UNLIKELY(!AsanInited())) { \
3838
return internal_memcpy(to, from, size); \
3939
} \
40-
return SANITIZER_AIX ? internal_memcpy(to, from, size) : \
41-
REAL(memcpy)(to, from, size); \
40+
#if !SANITIZER_AIX
41+
return REAL(memcpy)(to, from, size); \
42+
#else
43+
return internal_memcpy(to, from, size); \
44+
#endif
4245
} while (0)
4346

4447
// memset is called inside Printf.

0 commit comments

Comments
 (0)