mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-06 06:54:13 +00:00
Check for *_INVALID
uniqueids in isValid
This commit is contained in:
parent
7115c8cfaa
commit
a6e5e6d53f
@ -849,6 +849,10 @@ uint32_t RabbitizerInstruction_getValidBits(const RabbitizerInstruction *self) {
|
||||
bool RabbitizerInstruction_isValid(const RabbitizerInstruction *self) {
|
||||
uint32_t validbits;
|
||||
|
||||
if (!RabbitizerInstruction_isImplemented(self)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
validbits = RabbitizerInstruction_getValidBits(self);
|
||||
|
||||
return ((~validbits) & self->word) == 0;
|
||||
|
Loading…
Reference in New Issue
Block a user