Skip to content
Snippets Groups Projects
Commit 26d5bc7f authored by Evgeniy Stepanov's avatar Evgeniy Stepanov
Browse files

[msan] Use sptr instead of ptrdiff_t.

llvm-svn: 176854
parent ba56c8d4
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ void UnpoisonMappedDSO(link_map *map) { ...@@ -110,7 +110,7 @@ void UnpoisonMappedDSO(link_map *map) {
} }
// Compute the delta from the real base to get a relocation delta. // 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. // Now we can figure out what the loader really mapped.
for (char *iter = phdrs; iter != phdrs_end; iter += ehdr->e_phentsize) { for (char *iter = phdrs; iter != phdrs_end; iter += ehdr->e_phentsize) {
Elf_Phdr *phdr = (Elf_Phdr *)iter; Elf_Phdr *phdr = (Elf_Phdr *)iter;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment