Skip to content

Commit

Permalink
remove incorrect DCHECK
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fmayer committed Mar 18, 2024
1 parent 4841858 commit 7ef1a59
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler-rt/lib/hwasan/hwasan_checks.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ef1a59

Please sign in to comment.