Browse Source
std::memset is used to clear the entire register structure, which requires that the Regs struct be trivially copyable (otherwise undefined behavior is invoked). This prevents the case where a non-trivial type is potentially added to the struct.pull/15/merge
1 changed files with 2 additions and 0 deletions
Loading…
Reference in new issue