From: Wolfgang (Blub) Bumiller Date: Wed, 22 Aug 2012 10:33:24 +0000 (+0200) Subject: Don't try to generate function code for functions without bodies X-Git-Tag: 0.1-rc1~110 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5390782d9bfe0b6f6d0db93c7fa6ee61b9d5985c;p=xonotic%2Fgmqcc.git Don't try to generate function code for functions without bodies --- diff --git a/ir.c b/ir.c index 23064cb..074ed7f 100644 --- a/ir.c +++ b/ir.c @@ -2598,6 +2598,11 @@ static bool gen_global_function_code(ir_builder *ir, ir_value *global) ir_function *irfun; irfun = global->constval.vfunc; + if (!irfun) { + /* this was a function pointer, don't generate code for those */ + return true; + } + if (irfun->builtin) return true;