From 26d5bc7fdf7f936d813d015963275d29a783c42a Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 12 Mar 2013 07:21:17 +0000 Subject: [PATCH] [msan] Use sptr instead of ptrdiff_t. llvm-svn: 176854 --- compiler-rt/lib/msan/msan_linux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/msan/msan_linux.cc b/compiler-rt/lib/msan/msan_linux.cc index 64aa35b0b354..cda23b103d76 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; -- GitLab