From c2925b61f216606c774423dcc44cff70485323ec Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 19 Aug 2012 20:37:10 +0200 Subject: [PATCH] add the type for the invalid-type-for-global message --- ir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.39.2