Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144629770
D52534.1775880935.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
770 B
Referenced Files
None
Subscribers
None
D52534.1775880935.diff
View Options
diff --git a/contrib/llvm-project/libcxx/include/__memory/uninitialized_algorithms.h b/contrib/llvm-project/libcxx/include/__memory/uninitialized_algorithms.h
--- a/contrib/llvm-project/libcxx/include/__memory/uninitialized_algorithms.h
+++ b/contrib/llvm-project/libcxx/include/__memory/uninitialized_algorithms.h
@@ -642,7 +642,8 @@
__guard.__complete();
std::__allocator_destroy(__alloc, __first, __last);
} else {
- __builtin_memcpy(const_cast<__remove_const_t<_Tp>*>(__result), __first, sizeof(_Tp) * (__last - __first));
+ // Casting to void* to suppress clang complaining that this is technically UB.
+ __builtin_memcpy(static_cast<void*>(const_cast<__remove_const_t<_Tp>*>(__result)), __first, sizeof(_Tp) * (__last - __first));
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 11, 4:15 AM (12 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28322487
Default Alt Text
D52534.1775880935.diff (770 B)
Attached To
Mode
D52534: libc++: silence -Wnontrivial-memaccess warning with newer clang
Attached
Detach File
Event Timeline
Log In to Comment