summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/msan/msan_linux.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/msan/msan_linux.cc b/compiler-rt/lib/msan/msan_linux.cc
index 64aa35b0b35..cda23b103d7 100644
--- a/compiler-rt/lib/msan/msan_linux.cc
+++ b/compiler-rt/lib/msan/msan_linux.cc
@@ -110,7 +110,7 @@ void UnpoisonMappedDSO(link_map *map) {
}
// Compute the delta from the real base to get a relocation delta.
- ptrdiff_t delta = (uptr)base - preferred_base;
+ sptr delta = (uptr)base - preferred_base;
// Now we can figure out what the loader really mapped.
for (char *iter = phdrs; iter != phdrs_end; iter += ehdr->e_phentsize) {
Elf_Phdr *phdr = (Elf_Phdr *)iter;
OpenPOWER on IntegriCloud