[compiler-rt] r176854 - [msan] Use sptr instead of ptrdiff_t.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Mar 12 00:21:17 PDT 2013
Author: eugenis
Date: Tue Mar 12 02:21:17 2013
New Revision: 176854
URL: http://llvm.org/viewvc/llvm-project?rev=176854&view=rev
Log:
[msan] Use sptr instead of ptrdiff_t.
Modified:
compiler-rt/trunk/lib/msan/msan_linux.cc
Modified: compiler-rt/trunk/lib/msan/msan_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_linux.cc?rev=176854&r1=176853&r2=176854&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_linux.cc (original)
+++ compiler-rt/trunk/lib/msan/msan_linux.cc Tue Mar 12 02:21:17 2013
@@ -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;
More information about the llvm-commits
mailing list