Browse Source

llvmdbg: fix missing initialisation when there are no procedures

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

+ 1 - 0
compiler/llvm/dbgllvm.pas

@@ -2276,6 +2276,7 @@ implementation
 *)
 *)
         vardatatype: ttypesym;
         vardatatype: ttypesym;
       begin
       begin
+        ensuremetainit;
         storefilepos:=current_filepos;
         storefilepos:=current_filepos;
         current_filepos:=current_module.mainfilepos;
         current_filepos:=current_module.mainfilepos;