Pass a full MethodReference of the invoke in HInvoke nodes.
Cleanup to ensure we don't make mistakes when passing a dex method index
to the HInvoke constructor, and we know which dex file it relates to.
Test: test.py
Change-Id: I625949add88a6b97e1dafeb7aed37961e105d6aa
diff --git a/compiler/optimizing/critical_native_abi_fixup_arm.cc b/compiler/optimizing/critical_native_abi_fixup_arm.cc
index 8441423..94a9730 100644
--- a/compiler/optimizing/critical_native_abi_fixup_arm.cc
+++ b/compiler/optimizing/critical_native_abi_fixup_arm.cc
@@ -69,7 +69,7 @@
/*number_of_arguments=*/ 1u,
converted_type,
invoke->GetDexPc(),
- /*method_index=*/ dex::kDexNoIndex,
+ /*method_reference=*/ MethodReference(nullptr, dex::kDexNoIndex),
resolved_method,
dispatch_info,
kStatic,