Wrong symbols in debug file (pdb) for Island/LLVM

Hi,
when compiling an island project
some symbols for global variables (S_GDATA32) have wrong type information.

For instance:

const
PathDelim = '';

is represented with pdb symbol type index of zero, which is “None”
according to, for instance, The PDB TPI and IPI Streams — LLVM 20.0.0git documentation
(should either be a Char, or represented as constant (S_CONSTANT).

Another example:

class var szWindowClass: LPCWSTR := ‘IslandWindowsSample’;

is represented with type index $600, which means “64 bit near pointer” to “None”.

I’m not shure if this is a bug in LLVM or on your side.

Unbenannt.elements (1.2 KB)
Unbenannt.pas (415 Bytes)