mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Distinct inline can now be called if it is aliasing a function pointer.
This commit is contained in:
@@ -6017,7 +6017,8 @@ static void llvm_emit_call_expr(GenContext *c, BEValue *result_value, Expr *expr
|
||||
Expr *function = exprptr(expr->call_expr.function);
|
||||
|
||||
// 1a. Find the pointee type for the function pointer:
|
||||
Type *type = function->type->canonical->pointer;
|
||||
assert(type_flatten(function->type)->type_kind == TYPE_FUNC_PTR);
|
||||
Type *type = type_flatten(function->type)->pointer;
|
||||
|
||||
// 1b. Find the type signature using the underlying pointer.
|
||||
prototype = type_get_resolved_prototype(type);
|
||||
|
||||
Reference in New Issue
Block a user