[IR] Fix KT-59346, KT-55993

#KT-59346
#KT-55993
This commit is contained in:
Evgeniy.Zhelenskiy
2023-06-15 19:12:49 +02:00
committed by Space Team
parent e802ee05a7
commit 2d920df507
19 changed files with 212 additions and 6 deletions
@@ -792,6 +792,7 @@ class ExpressionCodegen(
declaration.markLineNumber(startOffset = true)
mv.store(index, varType)
} else if (declaration.isVisibleInLVT) {
declaration.markLineNumber(startOffset = true)
pushDefaultValueOnStack(varType, mv)
mv.store(index, varType)
}