[IR] Allow fast reference path in SymbolTable for wrapped descriptors

This commit is contained in:
Mikhail Glukhikh
2020-06-26 16:28:13 +03:00
parent 90f9b9c1c9
commit 19d115778b
@@ -203,10 +203,14 @@ open class SymbolTable(
} else { } else {
descriptorToSymbol[d] descriptorToSymbol[d]
} }
} else {
if (d.isBound()) {
((d.owner as? IrSymbolDeclaration<*>)?.symbol ?: descriptorToSymbol[d]) as S?
} else { } else {
descriptorToSymbol[d] descriptorToSymbol[d]
} }
} }
}
override fun set(d: D, s: S) { override fun set(d: D, s: S) {
if (s.isPublicApi) { if (s.isPublicApi) {