asm: assembler: constpool value indices are now used and enforced
constpool values must be defined in ascending sequence, each index must be greater than the last. any gaps in the sequence will automatically be filled with null values.
This commit is contained in:
@@ -287,7 +287,7 @@ enum ivy_status ivy_assembler_end_scope(struct ivy_assembler *as)
|
||||
|
||||
enum ivy_status ivy_assembler_put_pval(
|
||||
struct ivy_assembler *as, enum ivy_assembler_pval_type type,
|
||||
const void *val, ivy_extended_data_key *key)
|
||||
size_t slot, const void *val, ivy_extended_data_key *key)
|
||||
{
|
||||
struct assembler_scope *scope = as->as_scope;
|
||||
|
||||
@@ -300,7 +300,7 @@ enum ivy_status ivy_assembler_put_pval(
|
||||
return IVY_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
return type_info->s_put_pval(as, scope, type, val, key);
|
||||
return type_info->s_put_pval(as, scope, type, slot, val, key);
|
||||
}
|
||||
|
||||
enum ivy_status ivy_assembler_put_xval(
|
||||
|
||||
Reference in New Issue
Block a user