Browse Source

* 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 years ago
parent
commit
205136f924
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/llvm/hlcgllvm.pas

+ 1 - 1
compiler/llvm/hlcgllvm.pas

@@ -1233,7 +1233,7 @@ implementation
             LOC_MMREGISTER:
             LOC_MMREGISTER:
               begin
               begin
                 resloc.check_simple_location;
                 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;
               end;
             else
             else
               internalerror(2015042301);
               internalerror(2015042301);