From: bdemsky Date: Sun, 3 Apr 2011 03:17:05 +0000 (+0000) Subject: changes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bb806d96ca3e684ef9a95c299396eaef1c7ba137;p=IRC.git changes --- diff --git a/Robust/src/IR/Flat/BuildFlat.java b/Robust/src/IR/Flat/BuildFlat.java index 14987216..6645b01e 100644 --- a/Robust/src/IR/Flat/BuildFlat.java +++ b/Robust/src/IR/Flat/BuildFlat.java @@ -431,11 +431,10 @@ public class BuildFlat { return new NodePair(first,np.getEnd()); } else return new NodePair(first, fn); - } else if(state.MGC) { + } else { // array creation with initializers return flattenArrayInitializerNode(con.getArrayInitializer(), out_temp); } - return null; } } @@ -492,7 +491,7 @@ public class BuildFlat { if (min.getExpression()!=null) { TypeDescriptor mtd = min.getExpression().getType(); - if(state.MGC && mtd.isClass() && mtd.getClassDesc().isEnum()) { + if(mtd.isClass() && mtd.getClassDesc().isEnum()) { mtd = new TypeDescriptor(TypeDescriptor.INT); } thisarg=TempDescriptor.tempFactory("thisarg", mtd); @@ -505,7 +504,7 @@ public class BuildFlat { for(int i=0; i