forked from OSchip/llvm-project
[asan] Return type of index() is char*.
This is important for Android, where we can't keep system headers from leaking into asan_interceptors.cc. llvm-svn: 150374
This commit is contained in:
parent
da7522b551
commit
b25d0d2318
|
@ -377,10 +377,10 @@ INTERCEPTOR(char*, strchr, const char *str, int c) {
|
|||
}
|
||||
|
||||
#ifdef __linux__
|
||||
INTERCEPTOR(void*, index, const char *string, int c)
|
||||
INTERCEPTOR(char*, index, const char *string, int c)
|
||||
ALIAS(WRAPPER_NAME(strchr));
|
||||
#else
|
||||
DEFINE_REAL(void*, index, const char *string, int c);
|
||||
DEFINE_REAL(char*, index, const char *string, int c);
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID
|
||||
|
|
Loading…
Reference in New Issue