From b520fb12be5ad8da81db60e41b8f0be1c2535975 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Thu, 3 Jul 2014 22:28:35 +0000 Subject: [PATCH] * call def2regtyp via the chlcgobj class reference so it also works when hlcg is nil git-svn-id: branches/hlcgllvm@28144 - --- compiler/llvm/llvmdef.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/llvm/llvmdef.pas b/compiler/llvm/llvmdef.pas index 6462608c95..8c43ae5a10 100644 --- a/compiler/llvm/llvmdef.pas +++ b/compiler/llvm/llvmdef.pas @@ -134,8 +134,8 @@ implementation frombytesize, tobytesize: asizeint; begin - fromregtyp:=hlcg.def2regtyp(fromsize); - toregtyp:=hlcg.def2regtyp(tosize); + fromregtyp:=chlcgobj.def2regtyp(fromsize); + toregtyp:=chlcgobj.def2regtyp(tosize); { int to pointer or vice versa } if fromregtyp=R_ADDRESSREGISTER then begin