authorgravatar for jhc@dismail.deJimmi Holst Christensen <jhc@dismail.de> 2018-04-28 17:57:47+02:00
committergravatar for jhc@dismail.deJimmi Holst Christensen <jhc@dismail.de> 2018-04-28 17:57:47+02:00
log341f8c1e8680aa3cfbeba6833f85df00355a95ef
treeec6455ec65b5b675992f31b1109048bb31f3fbd0
parentfba0347ec43fb5c06b5ac9bec541b740d95194fe

Fixed wrong formatting for arg_index when reporting @ArgType error


1 files changed, 2 insertions(+), 2 deletions(-)

src/ir.cpp+2-2
...@@ -17874,8 +17874,8 @@ static TypeTableEntry *ir_analyze_instruction_arg_type(IrAnalyze *ira, IrInstruc...@@ -17874,8 +17874,8 @@ static TypeTableEntry *ir_analyze_instruction_arg_type(IrAnalyze *ira, IrInstruc
17874 assert(fn_type->data.fn.is_generic);17874 assert(fn_type->data.fn.is_generic);
1787517875
17876 ir_add_error(ira, arg_index_inst,17876 ir_add_error(ira, arg_index_inst,
17877 buf_sprintf("@ArgType could not resolve the type of arg %" ZIG_PRI_usize " because '%s' is generic",17877 buf_sprintf("@ArgType could not resolve the type of arg %" ZIG_PRI_u64 " because '%s' is generic",
17878 arg_index, buf_ptr(&fn_type->name)));17878 arg_index, buf_ptr(&fn_type->name)));
17879 return ira->codegen->builtin_types.entry_invalid;17879 return ira->codegen->builtin_types.entry_invalid;
17880 }17880 }
1788117881