mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-18 03:12:10 +00:00
Always require the results of asm templates
This commit is contained in:
@@ -1331,6 +1331,10 @@ gb_internal void check_asm_template(AsmCtx *asm_ctx, CheckerContext *ctx, Entity
|
||||
|
||||
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;
|
||||
if (!type->Proc.diverging && results->Tuple.variables.count != 0) {
|
||||
// always require the results of `asm` templates
|
||||
type->Proc.require_results = true;
|
||||
}
|
||||
|
||||
entity->type = type;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user