mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-18 22:42:58 +00:00
decoder_detail: Add check for N==0 to GetArgInfo
This commit is contained in:
@@ -85,9 +85,13 @@ private:
|
||||
arg_index++;
|
||||
}
|
||||
|
||||
ASSERT(arg_index < N);
|
||||
masks[arg_index] |= one << bit_position;
|
||||
shifts[arg_index] = bit_position;
|
||||
if constexpr (N > 0) {
|
||||
ASSERT(arg_index < N);
|
||||
masks[arg_index] |= one << bit_position;
|
||||
shifts[arg_index] = bit_position;
|
||||
} else {
|
||||
ASSERT_FALSE();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user