fix(register): force to sync since the _M_assigned may not be available

This commit is contained in:
DarkSharpness
2024-07-23 16:05:05 +08:00
parent 192de26ad6
commit 4e9af85b89

View File

@ -19,10 +19,8 @@ struct Register {
debug::DebugValue <bool, false> _M_assigned;
void sync() {
if (this->_M_assigned) {
this->_M_assigned = false;
this->_M_old = this->_M_new;
}
this->_M_assigned = false;
this->_M_old = this->_M_new;
}
public: