[llvm-commits] [compiler-rt] r145647 - /compiler-rt/trunk/lib/asan/mach_override/mach_override.c
Daniel Dunbar
daniel at zuster.org
Thu Dec 1 15:35:52 PST 2011
Author: ddunbar
Date: Thu Dec 1 17:35:51 2011
New Revision: 145647
URL: http://llvm.org/viewvc/llvm-project?rev=145647&view=rev
Log:
asan: Suppress a -Wbitwise-op-parentheses.
Modified:
compiler-rt/trunk/lib/asan/mach_override/mach_override.c
Modified: compiler-rt/trunk/lib/asan/mach_override/mach_override.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/mach_override/mach_override.c?rev=145647&r1=145646&r2=145647&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/mach_override/mach_override.c (original)
+++ compiler-rt/trunk/lib/asan/mach_override/mach_override.c Thu Dec 1 17:35:51 2011
@@ -401,7 +401,7 @@
if( !err ) {
assert( sizeof( BranchIsland ) <= pageSize );
#if defined(__x86_64__)
- vm_address_t first = (uint64_t)originalFunctionAddress & ~(uint64_t)(((uint64_t)1 << 31) - 1) | ((uint64_t)1 << 31); // start in the middle of the page?
+ vm_address_t first = ((uint64_t)originalFunctionAddress & ~(uint64_t)(((uint64_t)1 << 31) - 1)) | ((uint64_t)1 << 31); // start in the middle of the page?
vm_address_t last = 0x0;
#else
vm_address_t first = 0xfeffffff;
More information about the llvm-commits
mailing list