From a2f1aafed3647174080be091ce26dec04290ee2f Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Thu, 26 Mar 2026 17:54:17 +0800 Subject: [PATCH] Fix GB_PANIC format string in lb_emit_conv invalid subtype cast The panic string passed two type names but only had one %s placeholder. --- src/llvm_backend_expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp index 39cdcd54f..8a35f1690 100644 --- a/src/llvm_backend_expr.cpp +++ b/src/llvm_backend_expr.cpp @@ -2579,7 +2579,7 @@ gb_internal lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) { sel.index.allocator = temporary_allocator(); if (lookup_subtype_polymorphic_selection(t, src_type, &sel)) { if (sel.entity == nullptr) { - GB_PANIC("invalid subtype cast %s -> ", type_to_string(src_type), type_to_string(t)); + GB_PANIC("invalid subtype cast %s -> %s", type_to_string(src_type), type_to_string(t)); } if (st_is_ptr) { lbValue res = lb_emit_deep_field_gep(p, value, sel);