Skip to content

Commit e40aa83

Browse files
committed
Add FIXME for indirect call var resizing
1 parent 70f147c commit e40aa83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/parser.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,10 @@ void read_func_parameters(func_t *func, block_t *parent, basic_block_t **bb)
838838

839839
param = opstack_pop();
840840

841+
/* FIXME: Indirect call currently does not pass the function instance,
842+
* therefore no resize will happen on indirect call. This NULL check
843+
* should be removed once indirect call can provide function instance.
844+
*/
841845
if (func) {
842846
if (param_num >= func->num_params && func->va_args) {
843847
param = promote(parent, bb, param, TY_int, 0);

0 commit comments

Comments
 (0)