compiler/libec/pass15: (#1021) Fixed unresolved identifiers declared within case...
authorJerome St-Louis <jerome@ecere.com>
Thu, 20 Feb 2014 03:21:56 +0000 (22:21 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 20 Feb 2014 03:21:56 +0000 (22:21 -0500)
compiler/bootstrap/libec/bootstrap/pass15.c
compiler/libec/src/pass15.ec

index 3fa1191..d9ea172 100644 (file)
@@ -16769,10 +16769,8 @@ struct Statement * prevCompound = curCompound;
 struct Context * prevContext = curContext;
 
 if(!stmt->compound.isSwitch)
-{
 curCompound = stmt;
 curContext = stmt->compound.context;
-}
 if(stmt->compound.declarations)
 {
 for(decl = (*stmt->compound.declarations).first; decl; decl = decl->next)
index c4a6466..67c9739 100644 (file)
@@ -11012,10 +11012,8 @@ static void ProcessStatement(Statement stmt)
             Context prevContext = curContext;
 
             if(!stmt.compound.isSwitch)
-            {
                curCompound = stmt;
-               curContext = stmt.compound.context;
-            }
+            curContext = stmt.compound.context;
 
             if(stmt.compound.declarations)
             {