[JS IR] fix inline graph tracker for file-local signatures

This commit is contained in:
Anton Bannykh
2021-11-12 13:47:51 +03:00
committed by TeamCityServer
parent 56e1c4e38f
commit e342ade00a
@@ -173,8 +173,8 @@ class InlineFunctionHashBuilder(
edges.mapNotNull { callee ->
// TODO: use resolved FO
if (!callee.isFakeOverride) {
val signature = callee.symbol.signature ?: error("Expecting signature for ${callee.render()}")
if (signature.visibleCrossFile) {
val signature = callee.symbol.signature // ?: error("Expecting signature for ${callee.render()}")
if (signature?.visibleCrossFile == true) {
signature to (computedHashed[callee] ?: hashProvider.hashForExternalFunction(callee)
?: error("Internal error: No has found for ${callee.render()}"))
} else null