X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=ir.c;h=a208bc5bf2679e2f5fa331153ba3e86c6c53a336;hb=c2925b61f216606c774423dcc44cff70485323ec;hp=37ce2b0c199edd19f6034616091fc90fcf32c4b2;hpb=af3d9e0bdfc6a04922664d391f28211ef36cd933;p=xonotic%2Fgmqcc.git diff --git a/ir.c b/ir.c index 37ce2b0..a208bc5 100644 --- a/ir.c +++ b/ir.c @@ -2740,7 +2740,8 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global) return true; default: /* refuse to create 'void' type or any other fancy business. */ - irerror(global->context, "Invalid type for global variable %s\n", global->name); + irerror(global->context, "Invalid type for global variable `%s`: %s\n", + global->name, type_name[global->vtype]); return false; } }