Kotlin: Fix bug in, and performance of, NullGuards::clearlyNotNullExpr

This commit is contained in:
Ian Lynagh
2022-01-31 12:42:16 +00:00
parent 03c1845053
commit 8d754f5129

View File

@@ -64,9 +64,9 @@ Expr clearlyNotNullExpr(Expr reason) {
or
result.(ImplicitCastExpr).getExpr() = clearlyNotNullExpr(reason)
or
result instanceof ImplicitNotNullExpr
result instanceof ImplicitNotNullExpr and reason = result
or
result instanceof ImplicitCoercionToUnitExpr
result instanceof ImplicitCoercionToUnitExpr and reason = result
or
result.(AssignExpr).getSource() = clearlyNotNullExpr(reason)
or