Browse Source

* fixed IE when using a field of a record regvar as loop control variable
(the generated code is far from optimal, need to find a way to make such
records non regable)

git-svn-id: trunk@3639 -

Jonas Maebe 19 years ago
parent
commit
4c41e2c677
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/ncgflw.pas

+ 4 - 1
compiler/ncgflw.pas

@@ -455,8 +455,11 @@ implementation
            LOC_CREFERENCE :
              cg.a_load_loc_ref(current_asmdata.CurrAsmList,left.location.size,right.location,left.location.reference);
            LOC_REGISTER,
-           LOC_CREGISTER :
+           LOC_CREGISTER:
              cg.a_load_loc_reg(current_asmdata.CurrAsmList,left.location.size,right.location,left.location.register);
+           LOC_SUBSETREG,
+           LOC_CSUBSETREG :
+             cg.a_load_loc_subsetreg(current_asmdata.CurrAsmList,left.location.subsetregsize,left.location.size,left.location.startbit,right.location,left.location.subsetreg);
            else
              internalerror(200501311);
          end;