aboutsummaryrefslogtreecommitdiffhomepage
path: root/c.c
diff options
context:
space:
mode:
Diffstat (limited to 'c.c')
-rw-r--r--c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c.c b/c.c
index c3297e8..a8f2aa4 100644
--- a/c.c
+++ b/c.c
@@ -621,6 +621,7 @@ callexpr(struct comp *cm, const struct span *span_, const struct expr *callee)
.scls = SCEXTERN, .span = callee->span, .name = name
};
warn(&callee->span, "call to undeclared function '%s'", name);
+ ((struct expr *)callee)->ty = decl.ty;
((struct expr *)callee)->sym = putdecl(cm, &decl);
td = &typedata[ty.dat];
}