浏览代码

* 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 年之前
父节点
当前提交
e6c09430cb
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 }