Browse Source

LLVM: assign procdef.procstarttai, like in the regular code generator

Jonas Maebe 3 years ago
parent
commit
b7b495a679
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/llvm/hlcgllvm.pas

+ 1 - 0
compiler/llvm/hlcgllvm.pas

@@ -1437,6 +1437,7 @@ implementation
           item:=TCmdStrListItem(item.next);
           item:=TCmdStrListItem(item.next);
         end;
         end;
       list.concat(taillvmdecl.createdef(asmsym,current_procinfo.procdef,nil,sec_code,current_procinfo.procdef.alignment));
       list.concat(taillvmdecl.createdef(asmsym,current_procinfo.procdef,nil,sec_code,current_procinfo.procdef.alignment));
+      current_procinfo.procdef.procstarttai:=tai(list.last);
     end;
     end;