[compiler-rt] r187648 - [msan] Fix unused function warning in the tests.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Fri Aug 2 02:09:03 PDT 2013
Author: eugenis
Date: Fri Aug 2 04:09:02 2013
New Revision: 187648
URL: http://llvm.org/viewvc/llvm-project?rev=187648&view=rev
Log:
[msan] Fix unused function warning in the tests.
Modified:
compiler-rt/trunk/lib/msan/tests/msan_test.cc
Modified: compiler-rt/trunk/lib/msan/tests/msan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/msan_test.cc?rev=187648&r1=187647&r2=187648&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Fri Aug 2 04:09:02 2013
@@ -1970,6 +1970,8 @@ TEST(MemorySanitizer, dladdr) {
EXPECT_NOT_POISONED((unsigned long)info.dli_saddr);
}
+#ifndef MSAN_TEST_DISABLE_DLOPEN
+
static int dl_phdr_callback(struct dl_phdr_info *info, size_t size, void *data) {
(*(int *)data)++;
EXPECT_NOT_POISONED(info->dlpi_addr);
@@ -1980,8 +1982,6 @@ static int dl_phdr_callback(struct dl_ph
return 0;
}
-#ifndef MSAN_TEST_DISABLE_DLOPEN
-
// Compute the path to our loadable DSO. We assume it's in the same
// directory. Only use string routines that we intercept so far to do this.
static int PathToLoadable(char *buf, size_t sz) {
More information about the llvm-commits
mailing list