Browse Source

dbgllvm: fix crash for files without procedures/functions

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

+ 1 - 0
compiler/llvm/dbgllvm.pas

@@ -2120,6 +2120,7 @@ implementation
         lang: tdwarf_source_language;
         objcruntimeversion: longint;
       begin
+        ensuremetainit;
         if (ds_dwarf_cpp in current_settings.debugswitches) then
           lang:=DW_LANG_C_plus_plus
         else