summaryrefslogtreecommitdiff
path: root/runtime/method_handles.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/method_handles.cc')
-rw-r--r--runtime/method_handles.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/method_handles.cc b/runtime/method_handles.cc
index f2ac3c89ca..c4e4d206a4 100644
--- a/runtime/method_handles.cc
+++ b/runtime/method_handles.cc
@@ -721,9 +721,8 @@ bool DoVarHandleInvokeTranslation(Thread* self,
// Determine the accessor kind to dispatch
ArtMethod* target_method = method_handle->GetTargetMethod();
- int intrinsic_index = target_method->GetIntrinsic();
mirror::VarHandle::AccessMode access_mode =
- mirror::VarHandle::GetAccessModeByIntrinsic(static_cast<Intrinsics>(intrinsic_index));
+ mirror::VarHandle::GetAccessModeByIntrinsic(target_method->GetIntrinsic());
Handle<mirror::MethodType> vh_type =
hs.NewHandle(vh->GetMethodTypeForAccessMode(self, access_mode));
Handle<mirror::MethodType> mh_invoke_type = hs.NewHandle(