From c6a4dd08fc09538486b5e0839a8c80dd8f5bcdee Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 21 Aug 2026 15:57:45 +0100 Subject: [PATCH] Add `typename` to keep clang happy --- src/check_asm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/check_asm.cpp b/src/check_asm.cpp index 3e48a0a9c..4bad35ba8 100644 --- a/src/check_asm.cpp +++ b/src/check_asm.cpp @@ -1055,7 +1055,7 @@ gb_internal void check_mnemonic(AsmCtx *asm_ctx, CheckerContext *ctx, Entity *tm if (arg_index < 0 || arg_index > 2) { return -1; } - auto want = cast(AsmCtx::AliasSrc)(asm_ctx->AliasSrc_ARG0 + arg_index); + auto want = cast(typename AsmCtx::AliasSrc)(asm_ctx->AliasSrc_ARG0 + arg_index); for (int i = 0; i < gb_count_of(a.src); i++) { if (a.src[i] == want) { return i; @@ -1071,7 +1071,7 @@ gb_internal void check_mnemonic(AsmCtx *asm_ctx, CheckerContext *ctx, Entity *tm return pseudo_alias_arg_operand_index(asm_ctx, alias, user_i); }; - auto operand_slot_type = [&](AsmCtx::Encoding const &form, int user_index) -> AsmCtx::OperandType { + auto operand_slot_type = [&](typename AsmCtx::Encoding const &form, int user_index) -> typename AsmCtx::OperandType { int raw_slot = -1; if (is_pseudo) { raw_slot = user_operand_target_index(user_index);