Implemented operand type validation.

This commit is contained in:
Can Bölük 2020-05-19 05:22:06 +02:00
parent 50b5792b24
commit ef6afdddaa

View file

@ -60,5 +60,17 @@ namespace vtil
else
branch_operands_rip.push_back( -op - 1 );
}
// Validate operand types.
//
bool written = false;
for ( operand_type type : operand_types )
{
if ( type >= operand_type::write )
{
fassert( !written );
written = true;
}
}
}
};