Skip to content

Commit

Permalink
Don't modify absolute matching injection point ordinals
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed May 9, 2024
1 parent 1b4d935 commit 8a428a5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ private static Optional<LocalVar> tryFindUpdatedIndex(Type targetType, MethodCon
.flatMap(var -> dirtyVarLookup.getTypedOrdinal(var).map(o -> new LocalVar(var, o)));
}
LocalVariableNode dirtyLocal = dirtyLocals.get(ordinal);
if (!local.relative() && dirtyLocal.index == local.lvn().index) {
return Optional.empty();
}
OptionalInt dirtyNameOrdinal = GeneratedVariables.getGeneratedVariableOrdinal(dirtyLocal.name, Type.getType(dirtyLocal.desc));
if (dirtyNameOrdinal.isEmpty() || local.relative() && ordinal == dirtyNameOrdinal.getAsInt()) {
return Optional.empty();
Expand Down

0 comments on commit 8a428a5

Please sign in to comment.