[PATCH] D47054: [asan] Remove an unsigned compare >= 0
Walter Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 18 10:56:12 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL332744: [asan] Remove an unsigned compare >= 0 (authored by waltl, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D47054?vs=147444&id=147557#toc
Repository:
rL LLVM
https://reviews.llvm.org/D47054
Files:
compiler-rt/trunk/lib/asan/asan_mapping.h
Index: compiler-rt/trunk/lib/asan/asan_mapping.h
===================================================================
--- compiler-rt/trunk/lib/asan/asan_mapping.h
+++ compiler-rt/trunk/lib/asan/asan_mapping.h
@@ -307,7 +307,7 @@
static inline bool AddrIsInLowMem(uptr a) {
PROFILE_ASAN_MAPPING();
- return a >= kLowMemBeg && a <= kLowMemEnd;
+ return a <= kLowMemEnd;
}
static inline bool AddrIsInLowShadow(uptr a) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47054.147557.patch
Type: text/x-patch
Size: 429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180518/a754268d/attachment.bin>
More information about the llvm-commits
mailing list