From 205136f924efa83a84e3d601265b42cbb685d72c Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sat, 26 Dec 2015 20:01:38 +0000 Subject: [PATCH] * 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 - --- compiler/llvm/hlcgllvm.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/llvm/hlcgllvm.pas b/compiler/llvm/hlcgllvm.pas index 0b0b1de3c4..41f73aa63d 100644 --- a/compiler/llvm/hlcgllvm.pas +++ b/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);