Skip to content

Commit

Permalink
[libc++] Silent warning related to memcpy of non trivially-copyable data
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Oct 8, 2024
1 parent b2de17d commit d368c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcxx/include/__memory/uninitialized_algorithms.h
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ __uninitialized_allocator_relocate(_Alloc& __alloc, _Tp* __first, _Tp* __last, _
__guard.__complete();
std::__allocator_destroy(__alloc, __first, __last);
} else {
__builtin_memcpy(__result, __first, sizeof(_Tp) * (__last - __first));
__builtin_memcpy((void*)__result, (void*)__first, sizeof(_Tp) * (__last - __first));
}
}

Expand Down

0 comments on commit d368c69

Please sign in to comment.