Explorar el Código

* don't call FPC_CHECKPOINTER for references built from a LOC_CONSTANT
(mantis #13522)

git-svn-id: trunk@13031 -

Jonas Maebe hace 16 años
padre
commit
8de8d4c29b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      compiler/ncgmem.pas

+ 3 - 1
compiler/ncgmem.pas

@@ -225,7 +225,9 @@ implementation
             (cs_checkpointer in current_settings.localswitches) and
             not(cs_compilesystem in current_settings.moduleswitches) and
             not(tpointerdef(left.resultdef).is_far) and
-            not(nf_no_checkpointer in flags) then
+            not(nf_no_checkpointer in flags) and
+            { can be NR_NO in case of LOC_CONSTANT }
+            (location.reference.base<>NR_NO) then
           begin
             paraloc1.init;
             paramanager.getintparaloc(pocall_default,1,paraloc1);