[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) { if (!compatibleType) {
return@mapNotNull null return@mapNotNull null
} }
// TODO: it should be already expanded - KT-64743 symbol to superType.lookupTag
symbol to superType.fullyExpandedType(session).lookupTag
} }
} }
} }
@@ -83,7 +83,9 @@ internal fun PhaseContext.firSerializerBase(
firFilesAndSessionsBySourceFile, firFilesAndSessionsBySourceFile,
bodiesOnlyForInlines = produceHeaderKlib, bodiesOnlyForInlines = produceHeaderKlib,
skipPrivateApi = produceHeaderKlib, skipPrivateApi = produceHeaderKlib,
) { firFile, session, scopeSession -> ) { firFile, originalSession, originalScopeSession ->
val session = fir2IrInput?.components?.session ?: originalSession
val scopeSession = fir2IrInput?.components?.scopeSession ?: originalScopeSession
serializeSingleFirFile( serializeSingleFirFile(
firFile, firFile,
session, session,