Browse Source

* call def2regtyp via the chlcgobj class reference so it also works when
hlcg is nil

git-svn-id: branches/hlcgllvm@28144 -

Jonas Maebe 11 years ago
parent
commit
b520fb12be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/llvm/llvmdef.pas

+ 2 - 2
compiler/llvm/llvmdef.pas

@@ -134,8 +134,8 @@ implementation
       frombytesize,
       frombytesize,
       tobytesize: asizeint;
       tobytesize: asizeint;
     begin
     begin
-      fromregtyp:=hlcg.def2regtyp(fromsize);
-      toregtyp:=hlcg.def2regtyp(tosize);
+      fromregtyp:=chlcgobj.def2regtyp(fromsize);
+      toregtyp:=chlcgobj.def2regtyp(tosize);
       { int to pointer or vice versa }
       { int to pointer or vice versa }
       if fromregtyp=R_ADDRESSREGISTER then
       if fromregtyp=R_ADDRESSREGISTER then
         begin
         begin