FIR CFG: remove liveness analysis from lambda reassignment analyzer

Handling try/catch and break/continue is too hard here, and failing to
do that properly can create incorrect smartcast. Better be conservative
and assume all code is live.
This commit is contained in:
pyos
2022-10-06 15:24:40 +02:00
committed by teamcity
parent 3160470201
commit 46d7b66e59
2 changed files with 28 additions and 102 deletions
@@ -50,6 +50,6 @@ fun test4() {
return
}
x = null
lambda?.invoke()
lambda<!UNNECESSARY_SAFE_CALL!>?.<!>invoke()
}
}