Kaynağa Gözat

+ introduce the anf_ofs address node flag - indicates that the node was
generated by ofs()

git-svn-id: trunk@38670 -

nickysn 7 yıl önce
ebeveyn
işleme
213e61eae5
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 2 3
      compiler/nmem.pas
  2. 1 0
      compiler/pexpr.pas

+ 2 - 3
compiler/nmem.pas

@@ -69,9 +69,8 @@ interface
        tloadparentfpnodeclass = class of tloadparentfpnode;
 
        taddrnodeflag = (
-          anf_dummyflag  { todo: remove this, when the first real addrnode flag
-                           is added (this is just a dummy element, because the
-                           enum cannot be empty) }
+          { generated by the Ofs() internal function }
+          anf_ofs
        );
        taddrnodeflags = set of taddrnodeflag;
 

+ 1 - 0
compiler/pexpr.pas

@@ -626,6 +626,7 @@ implementation
               if token<>_RKLAMMER then
                 p1:=sub_expr(opcompare,[ef_accept_equal],p1);
               p1:=caddrnode.create(p1);
+              include(taddrnode(p1).addrnodeflags,anf_ofs);
               got_addrn:=false;
               { Ofs() returns a cardinal/qword, not a pointer }
               inserttypeconv_internal(p1,uinttype);