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);