diff --git a/compiler/aarch64/agcpugas.pas b/compiler/aarch64/agcpugas.pas index 95d4ccebaa..578037e398 100644 --- a/compiler/aarch64/agcpugas.pas +++ b/compiler/aarch64/agcpugas.pas @@ -313,10 +313,11 @@ unit agcpugas; tmplist.free; tmplist:=nil; end; + end; ait_symbol: begin - if tai_symbol(hp).is_global then + if tai_symbol(hp).sym.typ=AT_FUNCTION then lastsym:=tai_symbol(hp); end; ait_instruction: