mesa: issue error, don't crash, when calling a prototyped, but undefined function

Bug #18659.

(cherry picked from commit 4f05893415)
This commit is contained in:
Brian Paul
2008-11-21 17:22:16 -07:00
committed by Brian Paul
parent db2cde413c
commit 716ccb11a2
+7
View File
@@ -2017,6 +2017,13 @@ _slang_gen_function_call_name(slang_assemble_ctx *A, const char *name,
name);
return NULL;
}
if (!fun->body) {
slang_info_log_error(A->log,
"Function '%s' prototyped but not defined. "
"Separate compilation units not supported.",
name);
return NULL;
}
n = _slang_gen_function_call(A, fun, oper, dest);