We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df97f78 commit ceb6439Copy full SHA for ceb6439
1 file changed
src/main/kotlin/platform/mixin/util/LocalVariables.kt
@@ -229,8 +229,11 @@ object LocalVariables {
229
val extraVars = extraVariables[offset]
230
if (extraVars != null) {
231
for (variable in extraVars) {
232
- val localsHere = this.locals[offset]
+ var localsHere = this.locals[offset]
233
?: arrayOfNulls<SourceLocalVariable>(variable.index + 1).also { this.locals[offset] = it }
234
+ if (variable.index >= localsHere.size) {
235
+ localsHere = localsHere.copyOf(variable.index + 1)
236
+ }
237
localsHere[variable.index] = variable
238
if (variable.type == PsiTypes.longType() || variable.type == PsiTypes.doubleType()) {
239
if (variable.index + 1 < localsHere.size) {
0 commit comments