Skip to content

Commit 7ef1a59

Browse files
committed
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.
1 parent 4841858 commit 7ef1a59

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler-rt/lib/hwasan/hwasan_checks.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ __attribute__((always_inline, nodebug)) static inline uptr ShortTagSize(
140140

141141
__attribute__((always_inline, nodebug)) static inline bool
142142
PossiblyShortTagMatches(tag_t mem_tag, uptr ptr, uptr sz) {
143-
DCHECK(IsAligned(ptr, kShadowAlignment));
144143
tag_t ptr_tag = GetTagFromPointer(ptr);
145144
if (ptr_tag == mem_tag)
146145
return true;

0 commit comments

Comments
 (0)