From 91028358bec618af1c1ce92183834a4b726277a7 Mon Sep 17 00:00:00 2001 From: sandeep Date: Mon, 24 Dec 2001 22:13:12 +0000 Subject: [PATCH] Fixed a bug in dumptree git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1741 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCast.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SDCCast.c b/src/SDCCast.c index 48a96f04..fcf5aa16 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -4876,7 +4876,9 @@ void ast_print (ast * tree, FILE *outfile, int indent) /*----------------------------*/ case RETURN: fprintf(outfile,"RETURN (%p) type (",tree); - printTypeChain(tree->right->ftype,outfile); + if (tree->right) { + printTypeChain(tree->right->ftype,outfile); + } fprintf(outfile,")\n"); ast_print(tree->right,outfile,indent+2); return ; -- 2.30.2