mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 14:22:18 -04:00
Add extra check for scratch parameters with no other parameters
This commit is contained in:
1 parent
2ba79e2f17
commit
83f5cd8767
1 file changed
+4
@@ -672,6 +672,10 @@ gb_internal void check_asm_specs(AsmCtx *asm_ctx, CheckerContext *ctx, Scope *sc
|
||||
}
|
||||
}
|
||||
|
||||
if (other_scratch == nullptr && check_asm_reg_class_from_type(type) != AsmRegClass_Unknown) {
|
||||
ed.kind = AsmTemplateEntityDecl_Register;
|
||||
}
|
||||
|
||||
array_add(asm_template_entity_decls, ed);
|
||||
} else {
|
||||
TokenPos pos = found->token.pos;
|
||||
|
||||
Reference in new issue
Block a user