[LIR] Fix incorrect return type in invoke-polymorphic Bug: b/225838009 Change-Id: I94b03d71af28556c9493b106d7355db061fe8997
diff --git a/src/main/java/com/android/tools/r8/lightir/Lir2IRConverter.java b/src/main/java/com/android/tools/r8/lightir/Lir2IRConverter.java index 919df25..985b5c2 100644 --- a/src/main/java/com/android/tools/r8/lightir/Lir2IRConverter.java +++ b/src/main/java/com/android/tools/r8/lightir/Lir2IRConverter.java
@@ -656,7 +656,7 @@ @Override public void onInvokePolymorphic(DexMethod target, DexProto proto, List<EV> arguments) { - Value dest = getInvokeInstructionOutputValue(target); + Value dest = getInvokeInstructionOutputValue(proto); List<Value> ssaArgumentValues = getValues(arguments); InvokePolymorphic instruction = new InvokePolymorphic(target, proto, dest, ssaArgumentValues); addInstruction(instruction);