forked from OSchip/llvm-project
Use the return value of dladdr() to avoid Clang warning.
llvm-svn: 163311
This commit is contained in:
parent
a8e15b0892
commit
3ecf916c33
|
@ -96,7 +96,7 @@ void MaybeReexec() {
|
||||||
// the library is preloaded so that the wrappers work. If it is not, set
|
// the library is preloaded so that the wrappers work. If it is not, set
|
||||||
// DYLD_INSERT_LIBRARIES and re-exec ourselves.
|
// DYLD_INSERT_LIBRARIES and re-exec ourselves.
|
||||||
Dl_info info;
|
Dl_info info;
|
||||||
int result = dladdr((void*)__asan_init, &info);
|
CHECK(dladdr((void*)__asan_init, &info));
|
||||||
const char *dyld_insert_libraries = GetEnv(kDyldInsertLibraries);
|
const char *dyld_insert_libraries = GetEnv(kDyldInsertLibraries);
|
||||||
if (!dyld_insert_libraries ||
|
if (!dyld_insert_libraries ||
|
||||||
!REAL(strstr)(dyld_insert_libraries, info.dli_fname)) {
|
!REAL(strstr)(dyld_insert_libraries, info.dli_fname)) {
|
||||||
|
|
Loading…
Reference in New Issue