Browse Source

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

git-svn-id: trunk@13031 -

Jonas Maebe 16 years ago
parent
commit
8de8d4c29b
1 changed files with 3 additions and 1 deletions
  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);