[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) {
|
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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user