Skip to content

Commit e1be43c

Browse files
committed
fix(worker): skip function prototypes
1 parent b15cb15 commit e1be43c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core/worker.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ static void _rd_worker_apply_function_types(RDContext* ctx) {
8383
vect_each(it, &ctx->typedefs) {
8484
const RDTypeDef* tdef = *it;
8585

86-
if(tdef->kind != RD_TKIND_FUNC || tdef->flags & RD_TFLAGS_BUILTIN)
86+
if(tdef->kind != RD_TKIND_FUNC || (tdef->flags & RD_TFLAGS_BUILTIN) ||
87+
(tdef->flags & RD_TFLAGS_PROTOTYPE))
8788
continue;
8889

8990
RDAddress address;

0 commit comments

Comments
 (0)