[LLDB] Check that RegisterInfo and ContextInfo are trivial
authorDavid Spickett <david.spickett@linaro.org>
Mon, 24 Oct 2022 08:54:33 +0000 (08:54 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Mon, 24 Oct 2022 10:16:29 +0000 (10:16 +0000)
commit8d06ef5658187bf6a3eda61a5ec3627c1ff33fb8
tree75a48779205c491f867748772c7b664de7fe4fa4
parent282fe5084d12bf612ea4bd5d52319565761a13d3
[LLDB] Check that RegisterInfo and ContextInfo are trivial

RegisterInfo is often initialised with a memcpy, and ContextInfo
does not run destructors for anything within it.

This was discussed in https://reviews.llvm.org/D134041.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D136584
lldb/include/lldb/Core/EmulateInstruction.h
lldb/include/lldb/lldb-private-types.h