RangeContainsLowering: Handle unsigned ranges.
This commit is contained in:
committed by
Alexander Udalov
parent
ceba9f231d
commit
a9359eb530
@@ -329,11 +329,11 @@ fun IrBuilderWithScope.irImplicitCast(argument: IrExpression, type: IrType) =
|
||||
fun IrBuilderWithScope.irReinterpretCast(argument: IrExpression, type: IrType) =
|
||||
IrTypeOperatorCallImpl(startOffset, endOffset, type, IrTypeOperator.REINTERPRET_CAST, type, argument)
|
||||
|
||||
fun IrBuilderWithScope.irInt(value: Int) =
|
||||
IrConstImpl.int(startOffset, endOffset, context.irBuiltIns.intType, value)
|
||||
fun IrBuilderWithScope.irInt(value: Int, type: IrType = context.irBuiltIns.intType) =
|
||||
IrConstImpl.int(startOffset, endOffset, type, value)
|
||||
|
||||
fun IrBuilderWithScope.irLong(value: Long) =
|
||||
IrConstImpl.long(startOffset, endOffset, context.irBuiltIns.longType, value)
|
||||
fun IrBuilderWithScope.irLong(value: Long, type: IrType = context.irBuiltIns.longType) =
|
||||
IrConstImpl.long(startOffset, endOffset, type, value)
|
||||
|
||||
fun IrBuilderWithScope.irChar(value: Char) =
|
||||
IrConstImpl.char(startOffset, endOffset, context.irBuiltIns.charType, value)
|
||||
|
||||
Reference in New Issue
Block a user