Fix misc typos in IR backends
This commit is contained in:
+1
-1
@@ -270,7 +270,7 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
|
|||||||
|
|
||||||
@Argument(
|
@Argument(
|
||||||
value = "-Xcheck-sticky-phase-conditions",
|
value = "-Xcheck-sticky-phase-conditions",
|
||||||
description = "Run sticky condition checks on subsequent phases as well. Implies -Xcheck-conditions"
|
description = "Run sticky condition checks on subsequent phases as well. Implies -Xcheck-phase-conditions"
|
||||||
)
|
)
|
||||||
var checkStickyPhaseConditions: Boolean by FreezableVar(false)
|
var checkStickyPhaseConditions: Boolean by FreezableVar(false)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -213,7 +213,7 @@ internal class CallableReferenceLowering(val context: JvmBackendContext) : FileL
|
|||||||
val lastParameterType = unboundCalleeParameters.lastOrNull()?.type
|
val lastParameterType = unboundCalleeParameters.lastOrNull()?.type
|
||||||
if ((lastParameterType as? IrSimpleType)?.classifier == continuationClass) {
|
if ((lastParameterType as? IrSimpleType)?.classifier == continuationClass) {
|
||||||
// If the last parameter is Continuation<> inherit from SuspendFunction.
|
// If the last parameter is Continuation<> inherit from SuspendFunction.
|
||||||
suspendFunctionClass = context.getIrClass(FqName("kotlin.Suspendfunction${numberOfParameters - 1}")).owner
|
suspendFunctionClass = context.getIrClass(FqName("kotlin.coroutines.SuspendFunction${numberOfParameters - 1}")).owner
|
||||||
val suspendFunctionClassTypeParameters = functionParameterTypes.dropLast(1) +
|
val suspendFunctionClassTypeParameters = functionParameterTypes.dropLast(1) +
|
||||||
(lastParameterType.arguments.single() as IrTypeProjection).type
|
(lastParameterType.arguments.single() as IrTypeProjection).type
|
||||||
functionReferenceClassSuperTypes += IrSimpleTypeImpl(
|
functionReferenceClassSuperTypes += IrSimpleTypeImpl(
|
||||||
|
|||||||
@@ -245,6 +245,6 @@ class IrBuiltIns(
|
|||||||
const val THROW_CCE = "THROW_CCE"
|
const val THROW_CCE = "THROW_CCE"
|
||||||
const val THROW_ISE = "THROW_ISE"
|
const val THROW_ISE = "THROW_ISE"
|
||||||
const val NO_WHEN_BRANCH_MATCHED_EXCEPTION = "noWhenBranchMatchedException"
|
const val NO_WHEN_BRANCH_MATCHED_EXCEPTION = "noWhenBranchMatchedException"
|
||||||
const val ILLEGAL_ARGUMENT_EXCEPTION = "illegalArgumentException "
|
const val ILLEGAL_ARGUMENT_EXCEPTION = "illegalArgumentException"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ where advanced options include:
|
|||||||
-Xallow-result-return-type Allow compiling code when `kotlin.Result` is used as a return type
|
-Xallow-result-return-type Allow compiling code when `kotlin.Result` is used as a return type
|
||||||
-Xcheck-phase-conditions Check pre- and postconditions on phases
|
-Xcheck-phase-conditions Check pre- and postconditions on phases
|
||||||
-Xcheck-sticky-phase-conditions
|
-Xcheck-sticky-phase-conditions
|
||||||
Run sticky condition checks on subsequent phases as well. Implies -Xcheck-conditions
|
Run sticky condition checks on subsequent phases as well. Implies -Xcheck-phase-conditions
|
||||||
-Xcommon-sources=<path> Sources of the common module that need to be compiled together with this module in the multi-platform mode.
|
-Xcommon-sources=<path> Sources of the common module that need to be compiled together with this module in the multi-platform mode.
|
||||||
Should be a subset of sources passed as free arguments
|
Should be a subset of sources passed as free arguments
|
||||||
-Xcoroutines={enable|warn|error}
|
-Xcoroutines={enable|warn|error}
|
||||||
|
|||||||
+1
-1
@@ -73,7 +73,7 @@ where advanced options include:
|
|||||||
-Xallow-result-return-type Allow compiling code when `kotlin.Result` is used as a return type
|
-Xallow-result-return-type Allow compiling code when `kotlin.Result` is used as a return type
|
||||||
-Xcheck-phase-conditions Check pre- and postconditions on phases
|
-Xcheck-phase-conditions Check pre- and postconditions on phases
|
||||||
-Xcheck-sticky-phase-conditions
|
-Xcheck-sticky-phase-conditions
|
||||||
Run sticky condition checks on subsequent phases as well. Implies -Xcheck-conditions
|
Run sticky condition checks on subsequent phases as well. Implies -Xcheck-phase-conditions
|
||||||
-Xcommon-sources=<path> Sources of the common module that need to be compiled together with this module in the multi-platform mode.
|
-Xcommon-sources=<path> Sources of the common module that need to be compiled together with this module in the multi-platform mode.
|
||||||
Should be a subset of sources passed as free arguments
|
Should be a subset of sources passed as free arguments
|
||||||
-Xcoroutines={enable|warn|error}
|
-Xcoroutines={enable|warn|error}
|
||||||
|
|||||||
Reference in New Issue
Block a user