[compiler-rt] r187373 - Fix warning.
Peter Collingbourne
peter at pcc.me.uk
Mon Jul 29 13:13:41 PDT 2013
Author: pcc
Date: Mon Jul 29 15:13:41 2013
New Revision: 187373
URL: http://llvm.org/viewvc/llvm-project?rev=187373&view=rev
Log:
Fix warning.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=187373&r1=187372&r2=187373&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Mon Jul 29 15:13:41 2013
@@ -651,7 +651,7 @@ void ForEachMappedRegion(link_map *map,
// Find the segment with the minimum base so we can "relocate" the p_vaddr
// fields. Typically ET_DYN objects (DSOs) have base of zero and ET_EXEC
// objects have a non-zero base.
- uptr preferred_base = ~0ULL;
+ uptr preferred_base = (uptr)-1;
for (char *iter = phdrs; iter != phdrs_end; iter += ehdr->e_phentsize) {
Elf_Phdr *phdr = (Elf_Phdr *)iter;
if (phdr->p_type == PT_LOAD && preferred_base > (uptr)phdr->p_vaddr)
More information about the llvm-commits
mailing list