diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-09-03 17:37:35 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-09-03 17:37:35 +0200 |
commit | 578f0b0fdf12dd9b6b1fa0748aaf3a56e68d2627 (patch) | |
tree | 0f11b67e3372e7d250e3193d9a9e674ecee6be70 /ecomp-c | |
parent | c72f836f6d7319222c45e2c60e08de6d089ea131 (diff) | |
download | compilertests-578f0b0fdf12dd9b6b1fa0748aaf3a56e68d2627.tar.gz compilertests-578f0b0fdf12dd9b6b1fa0748aaf3a56e68d2627.tar.bz2 |
initializing list of expressions properly in parameter call generation
Diffstat (limited to 'ecomp-c')
-rw-r--r-- | ecomp-c/ec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ecomp-c/ec.c b/ecomp-c/ec.c index 3b044df..1fc0dd6 100644 --- a/ecomp-c/ec.c +++ b/ecomp-c/ec.c @@ -1594,8 +1594,6 @@ static void parseParameterList( Scope *scope, ExpressionNodeList *list ) ExpressionNode *node; Expect( S_lparen ); - list->head = NULL; - list->tail = NULL; do { node = parseExpression( scope ); @@ -1623,6 +1621,9 @@ static void parseProcedureCall( Scope *scope ) ExpressionNode *node; ExpressionNodeList list; + list.head = NULL; + list.tail = NULL; + symbol = get_symbol( scope, ident ); nof_expected_params = 0; |