mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Kotlin: Fix bug in, and performance of, NullGuards::clearlyNotNullExpr
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user