From 7a6f70ba31551c688abf74a4499982245e883c54 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 19 Aug 2026 17:34:14 +0100 Subject: [PATCH] False positives: Ignore the out pinned parameters for the time being --- src/check_asm.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/check_asm.cpp b/src/check_asm.cpp index c44910af2..47309ad07 100644 --- a/src/check_asm.cpp +++ b/src/check_asm.cpp @@ -1989,17 +1989,17 @@ gb_internal void check_asm_template(AsmCtx *asm_ctx, CheckerContext *ctx, Entity error(previous_prefix_instr, "A prefix must be immediately followed by an instruction, but the template ended"); } - for (auto const &ed : ate->decls) { - if (!(ed.param_group == AsmTemplateEntityDeclParamGroup_Output && ed.pin.len != 0)) { - continue; - } - u16 bit = asm_ctx->clobber_bit_for_reg_name(ed.pin); - if (bit && (asm_acc.defined_regs & bit) == 0 && asm_acc.straight_line) { - error(ed.entity->token, - "Output '%.*s' is pinned to %%%.*s but nothing in this template writes it", - LIT(ed.entity->token.string), LIT(ed.pin)); - } - } + // for (auto const &ed : ate->decls) { + // if (!(ed.param_group == AsmTemplateEntityDeclParamGroup_Output && ed.pin.len != 0)) { + // continue; + // } + // u16 bit = asm_ctx->clobber_bit_for_reg_name(ed.pin); + // if (bit && (asm_acc.defined_regs & bit) == 0 && asm_acc.straight_line) { + // error(ed.entity->token, + // "Output '%.*s' is pinned to %%%.*s but nothing in this template writes it", + // LIT(ed.entity->token.string), LIT(ed.pin)); + // } + // } bool vet_unused = false;