Re: [PATCH] jit: Make recording::memento non-copyable

2022-07-14 Thread David Malcolm via Gcc-patches
On Thu, 2022-07-14 at 19:44 +0100, Jonathan Wakely wrote: > These polymoprhic types don't appear to be copied anywhere. Rather > than > trying to reason about what it means to copy a polymoprhic base > without > copying the derived part, disable copies. This also avoids a > potential > double-free

[PATCH] jit: Make recording::memento non-copyable

2022-07-14 Thread Jonathan Wakely via Gcc-patches
These polymoprhic types don't appear to be copied anywhere. Rather than trying to reason about what it means to copy a polymoprhic base without copying the derived part, disable copies. This also avoids a potential double-free if a recorindg::string object does somehow get copied (it owns a pointer