mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Kotlin: Remove another not-null-expr
This commit is contained in:
@@ -2893,8 +2893,12 @@ open class KotlinFileExtractor(
|
||||
// Check for a desugared in-place update operator, such as "v += e":
|
||||
val inPlaceUpdateRhs = getUpdateInPlaceRHS(e.origin, { it is IrGetValue && it.symbol.owner == e.symbol.owner }, rhsValue)
|
||||
if (inPlaceUpdateRhs != null) {
|
||||
if (!writeUpdateInPlaceExpr(e.origin!!, tw, id, type, exprParent)) {
|
||||
logger.errorElement("Unexpected origin", e)
|
||||
val origin = e.origin
|
||||
if (origin == null) {
|
||||
logger.errorElement("No origin for set-value", e)
|
||||
return
|
||||
} else if (!writeUpdateInPlaceExpr(origin, tw, id, type, exprParent)) {
|
||||
logger.errorElement("Unexpected origin for set-value", e)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user