[Native] Use proper session for fir metadata serialization
^KT-64743 Fixed
This commit is contained in:
committed by
Space Team
parent
8c04206709
commit
3aa84906c2
+1
-2
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user