* use findunitsymtable() when checking the module id

git-svn-id: trunk@34344 -
This commit is contained in:
svenbarth 2016-08-19 14:42:03 +00:00
parent 8b853571c6
commit 4a9eaf5317

View File

@ -3479,7 +3479,7 @@ implementation
result:=(tf_supports_packages in target_info.flags) and
(target_info.system in systems_indirect_var_imports) and
(cs_imported_data in current_settings.localswitches) and
(t.owner.moduleid<>current_module.moduleid);
(findunitsymtable(t.owner).moduleid<>current_module.moduleid);
end;
procedure thlcgobj.g_rangecheck(list: TAsmList; const l: tlocation; fromdef, todef: tdef);