mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
Don't try to generate function code for functions without bodies
This commit is contained in:
parent
fd835931af
commit
5390782d9b
1 changed files with 5 additions and 0 deletions
5
ir.c
5
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue