Selaa lähdekoodia

* fixed inverted condition in r16052 that could cause superfluous parameter
copies (and missing parameter copies, although that was less likely)

git-svn-id: trunk@16053 -

Jonas Maebe 15 vuotta sitten
vanhempi
commit
e6c09430cb
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      compiler/ncgcal.pas

+ 2 - 2
compiler/ncgcal.pas

@@ -544,8 +544,8 @@ implementation
                          end;
                        LOC_REFERENCE:
                          begin
-                           if skipiffinalloc and
-                              paramanager.is_stack_paraloc(callerparaloc) then
+                           if not(skipiffinalloc and
+                                  paramanager.is_stack_paraloc(callerparaloc)) then
                              begin
                                { Can't have a data copied to the stack, every location
                                  must contain a valid size field }