[K/N] Reformat
This commit is contained in:
+8
-10
@@ -1602,13 +1602,11 @@ internal object DevirtualizationAnalysis {
|
|||||||
if (!optimize) { // Add else branch throwing exception for debug purposes.
|
if (!optimize) { // Add else branch throwing exception for debug purposes.
|
||||||
branches.add(IrBranchImpl(
|
branches.add(IrBranchImpl(
|
||||||
startOffset = startOffset,
|
startOffset = startOffset,
|
||||||
endOffset = endOffset,
|
endOffset = endOffset,
|
||||||
condition = irTrue(),
|
condition = irTrue(),
|
||||||
result = irCall(symbols.throwInvalidReceiverTypeException).apply {
|
result = irCall(symbols.throwInvalidReceiverTypeException).apply {
|
||||||
putValueArgument(0,
|
putValueArgument(0,
|
||||||
irCall(symbols.kClassImplConstructor,
|
irCall(symbols.kClassImplConstructor, listOf(dispatchReceiver.type)).apply {
|
||||||
listOf(dispatchReceiver.type)
|
|
||||||
).apply {
|
|
||||||
putValueArgument(0, irGet(typeInfo))
|
putValueArgument(0, irGet(typeInfo))
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -1618,10 +1616,10 @@ internal object DevirtualizationAnalysis {
|
|||||||
|
|
||||||
+IrWhenImpl(
|
+IrWhenImpl(
|
||||||
startOffset = startOffset,
|
startOffset = startOffset,
|
||||||
endOffset = endOffset,
|
endOffset = endOffset,
|
||||||
type = type,
|
type = type,
|
||||||
origin = expression.origin,
|
origin = expression.origin,
|
||||||
branches = branches
|
branches = branches
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user