[IR] Add IrSymbolBase.toString() implementation

This commit is contained in:
Mikhail Glukhikh
2020-05-27 12:00:21 +03:00
parent 07b1bd9d99
commit 487a698e49
3 changed files with 19 additions and 5 deletions
@@ -590,8 +590,7 @@ class ExpressionCodegen(
val index = frameMap.getIndex(irSymbol)
if (index >= 0)
return index
val dump = if (irSymbol.isBound) irSymbol.owner.dump() else "??? unbound symbol ???"
throw AssertionError("Non-mapped local declaration: $dump\n in ${irFunction.dump()}")
throw AssertionError("Non-mapped local declaration: $irSymbol\n in ${irFunction.dump()}")
}
private fun handlePlusMinus(expression: IrSetVariable, value: IrExpression?, isMinus: Boolean): Boolean {