Correctly type check asm template parameters

This commit is contained in:
gingerBill
2026-08-09 18:52:57 +01:00
parent 5ac28cdecd
commit 25ce7e87de
2 changed files with 8 additions and 1 deletions

View File

@@ -2419,6 +2419,8 @@ gb_internal void check_asm_template(CheckerContext *ctx, Entity *entity, DeclInf
Type *type = alloc_type_proc(ate->param_scope, params, params->Tuple.variables.count, results, results->Tuple.variables.count, false, pt->calling_convention);
type->Proc.diverging = pt->diverging;
entity->type = type;
check_asm_specs(ctx, ate->param_scope, at->specs, &ate->decls);
{ // check clobbers
for (Ast *clobber_ : at->clobbers) {