IR: remove KotlinType usage from Ir.kt

This commit is contained in:
Georgy Bronnikov
2020-09-17 19:07:40 +03:00
parent 7afad9a91d
commit 80b7194799
3 changed files with 30 additions and 23 deletions
@@ -109,11 +109,7 @@ interface IrBuilderExtension {
}
fun IrBuilderWithScope.irBinOp(name: Name, lhs: IrExpression, rhs: IrExpression): IrExpression {
val symbol = compilerContext.symbols.getBinaryOperator(
name,
lhs.type.toKotlinType(),
rhs.type.toKotlinType()
)
val symbol = compilerContext.symbols.getBinaryOperator(name, lhs.type, rhs.type)
return irInvoke(lhs, symbol, rhs)
}