diff mbox

[v4,24/25] give default return type in evaluate_call()

Message ID 20170331014459.9351-25-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck March 31, 2017, 1:44 a.m. UTC
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 evaluate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/evaluate.c b/evaluate.c
index 0cec215ba..df6fd5adc 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -3030,11 +3030,11 @@  static struct symbol *evaluate_call(struct expression *expr)
 				     "too many arguments for function %s",
 				     show_ident(sym->ident));
 	}
+	expr->ctype = ctype->ctype.base_type;
 	if (sym->type == SYM_NODE) {
 		if (evaluate_symbol_call(expr))
 			return expr->ctype;
 	}
-	expr->ctype = ctype->ctype.base_type;
 	return expr->ctype;
 }