diff options
Diffstat (limited to 'cpp/025name')
-rw-r--r-- | cpp/025name | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/025name b/cpp/025name index d36552d3..7296881b 100644 --- a/cpp/025name +++ b/cpp/025name @@ -33,8 +33,7 @@ void transform_names(const recipe_number r) { || inst.operation == Recipe_number["get-address"]) { // at least 2 args, and second arg is offset assert(inst.ingredients.size() >= 2); - assert(!inst.ingredients[1].types.empty()); - assert(inst.ingredients[1].types[0] == 0); + assert(isa_literal(inst.ingredients[1])); if (inst.ingredients[1].name.find_first_not_of("0123456789") == string::npos) continue; // since first non-address in base type must be a record, we don't have to canonize type_number record = skip_addresses(inst.ingredients[0].types); |