Browse Source

* building for LLVM fixed

florian 3 years ago
parent
commit
33db5200e6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/hlcgobj.pas

+ 2 - 0
compiler/hlcgobj.pas

@@ -835,11 +835,13 @@ implementation
           setdef:
             result:=R_INTREGISTER;
           procvardef:
+{$ifndef LLVM}
             { getaddressregister cannot handle if multiple registers
               are required for a single element }
             if is_methodpointer(def) then
               result:=R_INTREGISTER
             else
+{$endif LLVM}
               result:=R_ADDRESSREGISTER;
           stringdef,
           pointerdef,