From 5390782d9bfe0b6f6d0db93c7fa6ee61b9d5985c Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Wed, 22 Aug 2012 12:33:24 +0200 Subject: [PATCH] Don't try to generate function code for functions without bodies --- ir.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.2