From 91563115c42448df25ac313b4be6049e0f65d11f Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Thu, 28 Apr 2022 21:56:46 +0200 Subject: [PATCH] dbgllvm: handle array of const (stub) --- compiler/llvm/dbgllvm.pas | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/llvm/dbgllvm.pas b/compiler/llvm/dbgllvm.pas index f610d1fdca..86f7028513 100644 --- a/compiler/llvm/dbgllvm.pas +++ b/compiler/llvm/dbgllvm.pas @@ -844,6 +844,13 @@ implementation exit; end; + if is_array_of_const(def) then + begin + { no idea about the size, generate an array of 1 element -- although it could be empty } + appenddef_array_internal(list,def,def.elementdef,0,1); + exit; + end; + if is_special_array(def) and not((llvmflag_array_datalocation in llvmversion_properties[current_settings.llvmversion]) and is_dynamic_array(def)) then