[Native] Use proper session for fir metadata serialization

^KT-64743 Fixed
This commit is contained in:
Dmitriy Novozhilov
2024-01-12 16:35:22 +02:00
committed by Space Team
parent 8c04206709
commit 3aa84906c2
2 changed files with 4 additions and 3 deletions
@@ -248,8 +248,7 @@ class FakeOverrideGenerator(
if (!compatibleType) {
return@mapNotNull null
}
// TODO: it should be already expanded - KT-64743
symbol to superType.fullyExpandedType(session).lookupTag
symbol to superType.lookupTag
}
}
}
@@ -83,7 +83,9 @@ internal fun PhaseContext.firSerializerBase(
firFilesAndSessionsBySourceFile,
bodiesOnlyForInlines = produceHeaderKlib,
skipPrivateApi = produceHeaderKlib,
) { firFile, session, scopeSession ->
) { firFile, originalSession, originalScopeSession ->
val session = fir2IrInput?.components?.session ?: originalSession
val scopeSession = fir2IrInput?.components?.scopeSession ?: originalScopeSession
serializeSingleFirFile(
firFile,
session,