Commit 54cbed23 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

beasm: Remove pointless null pointer check.

match_requirement() cannot be called with a requirement without a register class.
parent 816da49e
......@@ -179,8 +179,6 @@ static bool can_match(arch_register_req_t const *const in, arch_register_req_t c
static bool match_requirement(arch_register_req_t const **reqs, size_t const n_reqs, bitset_t *const used, arch_register_req_t const *const req)
{
if (!req->cls)
return true;
for (size_t i = 0; i != n_reqs; ++i) {
if (bitset_is_set(used, i))
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment