From 3931bd1a9e2e1a392ccc7aa099502d28d84104b4 Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Mon, 12 Jun 2006 08:58:49 +0000 Subject: [PATCH] * src/SDCCast.c (backPatchLabels): fixed bug #1504636 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4219 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ src/SDCCast.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index a9564d6e..ea69b475 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-06-12 Bernhard Held + + * src/SDCCast.c (backPatchLabels): fixed bug #1504636 + 2006-06-11 Maarten Brock * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used diff --git a/src/SDCCast.c b/src/SDCCast.c index 04d0a63b..f3ae4175 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -4794,6 +4794,7 @@ backPatchLabels (ast * tree, symbol * trueLabel, symbol * falseLabel) /* while-loops insert a label between the IFX and the condition, therefore look behind the label too */ if (tree->opval.op == LABEL && + tree->right && IS_ANDORNOT (tree->right)) { tree->right = backPatchLabels (tree->right, trueLabel, falseLabel); -- 2.30.2