JS IR: fix incremental compilation for stdlib

This commit is contained in:
Anton Bannykh
2020-05-13 14:38:48 +03:00
parent a95f205c1a
commit 5b63dad1c3
2 changed files with 3 additions and 3 deletions
@@ -114,7 +114,7 @@ class CurrentModuleWithICDeserializer(
return this !is DeserializedDescriptor
}
override fun init() {
override fun init(delegate: IrModuleDeserializer) {
val knownBuiltIns = irBuiltIns.knownBuiltins.map { (it as IrSymbolOwner).symbol }.toSet()
symbolTable.forEachPublicSymbol {
if (it.descriptor.isDirtyDescriptor()) { // public && non-deserialized should be dirty symbol
@@ -124,7 +124,7 @@ class CurrentModuleWithICDeserializer(
}
}
icDeserializer.init(this)
icDeserializer.init(delegate)
}
override val klib: IrLibrary
@@ -207,7 +207,7 @@ open class CurrentModuleDeserializer(
override fun contains(idSig: IdSignature): Boolean = false // TODO:
override fun deserializeIrSymbol(idSig: IdSignature, symbolKind: BinarySymbolData.SymbolKind): IrSymbol {
error("Unreachable execution: there could not be back-links")
error("Unreachable execution: there could not be back-links (sig: $idSig)")
}
override fun declareIrSymbol(symbol: IrSymbol) {}