Random typos.
[repair.git] / Repair / RepairCompiler / MCC / IR / DotExpr.java
index bf911bd8aafc6eb04d3a4ae46a6e067d7092800d..901b523d2b7730348490b26cd63b8c9c1e0c4d48 100755 (executable)
@@ -28,9 +28,9 @@ public class DotExpr extends Expr {
         this.left = left;
         this.field = field;
         this.index = index;
-
+        StructureTypeDescriptor struct = (StructureTypeDescriptor) left.getType();        
         FieldDescriptor fd = struct.getField(field);
-        LabelDescriptor ld = struct.getLabel(field);        
+        LabelDescriptor ld = struct.getLabel(field);
        if (ld != null) { /* label */
             assert fd == null;
             fieldtype = ld.getType(); // d.s ==> Superblock, while,  d.b ==> Block