Use the return value of dladdr() to avoid Clang warning.

llvm-svn: 163311
This commit is contained in:
Alexander Potapenko 2012-09-06 12:18:45 +00:00
parent a8e15b0892
commit 3ecf916c33
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {