mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 20:59:08 +02:00
* don't crash on inclusion of fpmake.pp
git-svn-id: trunk@24273 -
This commit is contained in:
parent
f3ef5a1f9c
commit
b27e03346b
@ -1171,7 +1171,7 @@ var
|
|||||||
Module: TPasElement;
|
Module: TPasElement;
|
||||||
begin
|
begin
|
||||||
Result := FindInModule(CurModule, AName);
|
Result := FindInModule(CurModule, AName);
|
||||||
if not Assigned(Result) then
|
if not Assigned(Result) and assigned (CurModule.InterfaceSection) then
|
||||||
for i := CurModule.InterfaceSection.UsesList.Count - 1 downto 0 do
|
for i := CurModule.InterfaceSection.UsesList.Count - 1 downto 0 do
|
||||||
begin
|
begin
|
||||||
Module := TPasElement(CurModule.InterfaceSection.UsesList[i]);
|
Module := TPasElement(CurModule.InterfaceSection.UsesList[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user