IPC SimpleArgumentEncoder should static_assert(std::is_trivially_copyable<T>)
<rdar://problem/83757335>
Created attachment 440250 [details] Patch
Comment on attachment 440250 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=440250&action=review > Source/WebKit/Platform/IPC/ArgumentCoders.h:47 > template<typename Encoder> I think you should be able to assert once in the class scope. template<typename T> struct SimpleArgumentCoder { static_assert(std::is_trivially_copyable_v<T>); ....
Created attachment 440364 [details] Patch
(In reply to Kimmo Kinnunen from comment #3) > Comment on attachment 440250 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=440250&action=review > > > Source/WebKit/Platform/IPC/ArgumentCoders.h:47 > > template<typename Encoder> > > I think you should be able to assert once in the class scope. > > template<typename T> struct SimpleArgumentCoder { > static_assert(std::is_trivially_copyable_v<T>); > .... Indeed, fixed.
Kimmo Kinnunen found in /Volumes/Data/worker/Commit-Queue/build/Source/WebKit/ChangeLog does not appear to be a valid reviewer according to contributors.json. /Volumes/Data/worker/Commit-Queue/build/Source/WebKit/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).
Committed r283618 (242570@main): <https://commits.webkit.org/242570@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440364 [details].