mirror of
https://github.com/vtil-project/VTIL-Core
synced 2026-08-17 08:23:03 -04:00
Don't use combined_id in constexpr functions to avoid union cast.
This commit is contained in:
parent
b609646564
commit
305c2a764d
1 changed files with 2 additions and 2 deletions
|
|
@ -262,7 +262,7 @@ namespace vtil
|
|||
//
|
||||
constexpr bool overlaps( const register_desc& o ) const
|
||||
{
|
||||
if ( combined_id != o.combined_id || flags != o.flags )
|
||||
if ( local_id != o.local_id || architecture != o.architecture || flags != o.flags )
|
||||
return false;
|
||||
return get_mask() & o.get_mask();
|
||||
}
|
||||
|
|
@ -271,7 +271,7 @@ namespace vtil
|
|||
//
|
||||
constexpr register_desc select( bitcnt_t new_bit_count, bitcnt_t new_bit_offset ) const
|
||||
{
|
||||
return { weaken(), new_bit_count, new_bit_offset };
|
||||
return { flags, local_id, new_bit_count, new_bit_offset, architecture };
|
||||
}
|
||||
constexpr register_desc rebase( bitcnt_t new_bit_offset ) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue