[compiler-rt] 7ef1a59 - remove incorrect DCHECK

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 15:40:00 PDT 2024


Author: Florian Mayer
Date: 2024-03-18T15:39:48-07:00
New Revision: 7ef1a59ed1ca176cf3c38672fe1d3f49c1758e49

URL: https://github.com/llvm/llvm-project/commit/7ef1a59ed1ca176cf3c38672fe1d3f49c1758e49
DIFF: https://github.com/llvm/llvm-project/commit/7ef1a59ed1ca176cf3c38672fe1d3f49c1758e49.diff

LOG: remove incorrect DCHECK

this DCHECK was not valid for hwasan_load1, and was not necessary for
the. the function is written without any assumptions of alignment of the
pointer.

Added: 
    

Modified: 
    compiler-rt/lib/hwasan/hwasan_checks.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/hwasan/hwasan_checks.h b/compiler-rt/lib/hwasan/hwasan_checks.h
index 0911af30dcb8fc..735d21a5db7746 100644
--- a/compiler-rt/lib/hwasan/hwasan_checks.h
+++ b/compiler-rt/lib/hwasan/hwasan_checks.h
@@ -140,7 +140,6 @@ __attribute__((always_inline, nodebug)) static inline uptr ShortTagSize(
 
 __attribute__((always_inline, nodebug)) static inline bool
 PossiblyShortTagMatches(tag_t mem_tag, uptr ptr, uptr sz) {
-  DCHECK(IsAligned(ptr, kShadowAlignment));
   tag_t ptr_tag = GetTagFromPointer(ptr);
   if (ptr_tag == mem_tag)
     return true;


        


More information about the llvm-commits mailing list