[JS IR IC] assert cross-file tag are not null and fix tests

This commit is contained in:
Anton Bannykh
2021-11-25 09:35:00 +03:00
committed by TeamCityServer
parent 33cd7e982c
commit 2259c6f75d
5 changed files with 33 additions and 24 deletions
@@ -488,7 +488,7 @@ open class SymbolTable(
override fun referenceClassFromLinker(sig: IdSignature): IrClassSymbol =
classSymbolTable.run {
if (sig.isPubliclyVisible) referenced(sig, false) { IrClassPublicSymbolImpl(sig) }
else IrClassSymbolImpl()
else IrClassSymbolImpl(signature = sig)
}
val unboundClasses: Set<IrClassSymbol> get() = classSymbolTable.unboundSymbols
@@ -841,7 +841,7 @@ open class SymbolTable(
override fun referenceSimpleFunctionFromLinker(sig: IdSignature): IrSimpleFunctionSymbol {
return simpleFunctionSymbolTable.run {
if (sig.isPubliclyVisible) referenced(sig, false) { IrSimpleFunctionPublicSymbolImpl(sig) }
else IrSimpleFunctionSymbolImpl()
else IrSimpleFunctionSymbolImpl(signature = sig)
}
}