浏览代码

* fixed the size used for setting uninitialised function results if it
has to be zero/sign-extended for ABI reasons

git-svn-id: trunk@32742 -

Jonas Maebe 9 年之前
父节点
当前提交
205136f924
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/llvm/hlcgllvm.pas

+ 1 - 1
compiler/llvm/hlcgllvm.pas

@@ -1233,7 +1233,7 @@ implementation
             LOC_MMREGISTER:
               begin
                 resloc.check_simple_location;
-                list.concat(taillvm.op_reg_size_undef(la_bitcast,resloc.location^.register,resloc.location^.def));
+                list.concat(taillvm.op_reg_size_undef(la_bitcast,resloc.location^.register,llvmgetcgparadef(resloc,true)));
               end;
             else
               internalerror(2015042301);