From 2ff764bd74e1785c2e9a589714298b9cd758feda Mon Sep 17 00:00:00 2001 From: johanknol Date: Fri, 7 Sep 2001 13:26:14 +0000 Subject: [PATCH] Don't call a function, unless it's a function git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1236 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCicode.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SDCCicode.c b/src/SDCCicode.c index 4e2af8d7..4dab87ed 100644 --- a/src/SDCCicode.c +++ b/src/SDCCicode.c @@ -2661,6 +2661,11 @@ geniCodeCall (operand * left, ast * parms,int lvl) sym_link *type, *etype; int stack = 0; + if (!IS_FUNC(OP_SYMBOL(left)->type)) { + werror (E_FUNCTION_EXPECTED); + return NULL; + } + /* take care of parameters with side-effecting function calls in them, this is required to take care of overlaying function parameters */ -- 2.30.2