diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/StrictBasicValue.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/StrictBasicValue.kt index 23b8fe166e7..bc4ca0e3643 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/StrictBasicValue.kt +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/StrictBasicValue.kt @@ -56,12 +56,9 @@ open class StrictBasicValue(type: Type?) : BasicValue(type) { other as StrictBasicValue - if (this === NULL_VALUE) return other === NULL_VALUE - if (other === NULL_VALUE) return this === NULL_VALUE + if (this === NULL_VALUE || other === NULL_VALUE) return false - if (type != other.type) return false - - return true + return type == other.type } override fun hashCode() = (type?.hashCode() ?: 0)