From: sandeep Date: Mon, 24 Dec 2001 22:13:12 +0000 (+0000) Subject: Fixed a bug in dumptree X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=91028358bec618af1c1ce92183834a4b726277a7;p=fw%2Fsdcc Fixed a bug in dumptree git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1741 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- 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 ;