Revert "KT-53146 Don't coerce Nothing? returned from "catch" clauses"
This reverts commit 903a5d69a4.
This commit is contained in:
+1
-3
@@ -1225,9 +1225,7 @@ class ExpressionCodegen(
|
||||
|
||||
val catchResult = catchBody.accept(this, catchBlockInfo)
|
||||
if (savedValue != null) {
|
||||
if (catchResult.irType != context.irBuiltIns.nothingNType) {
|
||||
catchResult.materializeAt(tryAsmType, aTry.type, true)
|
||||
}
|
||||
catchResult.materializeAt(tryAsmType, aTry.type, true)
|
||||
mv.store(savedValue, tryAsmType)
|
||||
} else {
|
||||
catchResult.discard()
|
||||
|
||||
Reference in New Issue
Block a user