Skip to content

Commit f8f91c4

Browse files
vitalybukaAdvenamTacet
authored andcommitted
simplify condition
1 parent 2607ba4 commit f8f91c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/asan/asan_poisoning.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,8 @@ void __sanitizer_copy_contiguous_container_annotations(const void *src_begin_p,
739739
constexpr uptr granularity = ASAN_SHADOW_GRANULARITY;
740740

741741
if (src_storage_begin > src_storage_end ||
742-
dst_storage_end !=
743-
(dst_storage_begin + (src_storage_end - src_storage_begin))) {
742+
(dst_storage_end - dst_storage_begin) !=
743+
(src_storage_end - src_storage_begin)) {
744744
GET_STACK_TRACE_FATAL_HERE;
745745
ReportBadParamsToCopyContiguousContainerAnnotations(
746746
src_storage_begin, src_storage_end, dst_storage_begin, dst_storage_end,

0 commit comments

Comments
 (0)