[PATCH] D47054: [asan] Remove an unsigned compare >= 0

Walter Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 17 23:59:05 PDT 2018


waltl created this revision.
waltl added reviewers: vitalybuka, eugenis, alekseyshl.
Herald added a subscriber: kubamracek.

This is not needed after we've forked the Myriad version.  Not to
mention it produces a compiler warning.


Repository:
  rL LLVM

https://reviews.llvm.org/D47054

Files:
  compiler-rt/lib/asan/asan_mapping.h


Index: compiler-rt/lib/asan/asan_mapping.h
===================================================================
--- compiler-rt/lib/asan/asan_mapping.h
+++ compiler-rt/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.147444.patch
Type: text/x-patch
Size: 411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180518/1ed56364/attachment.bin>


More information about the llvm-commits mailing list