diff options
author | 2018-07-03 09:18:32 +0100 | |
---|---|---|
committer | 2018-07-03 09:18:32 +0100 | |
commit | 35d5b8a2c5d2fce03be59aa003c3bf3c1b481be0 (patch) | |
tree | 7665f6d1527be61af13c8ef53f10833dd4200cfd /runtime/entrypoints/entrypoint_utils.cc | |
parent | b28683f43231e65860ecf91c96a8c0234542c019 (diff) |
ART: Do not use std::<container>::at().
These functions are specified as throwing std::out_of_range
and we do not use exceptions.
Test: m
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I67c365ed6d779c101a18b9f386c751c48ca76e16
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.cc')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.cc b/runtime/entrypoints/entrypoint_utils.cc index e71d1fa38a..d902455c00 100644 --- a/runtime/entrypoints/entrypoint_utils.cc +++ b/runtime/entrypoints/entrypoint_utils.cc @@ -74,11 +74,11 @@ JValue InvokeProxyInvocationHandler(ScopedObjectAccessAlreadyRunnable& soa, cons } for (size_t i = 0; i < args.size(); ++i) { if (shorty[i + 1] == 'L') { - jobject val = args.at(i).l; + jobject val = args[i].l; soa.Env()->SetObjectArrayElement(args_jobj, i, val); } else { JValue jv; - jv.SetJ(args.at(i).j); + jv.SetJ(args[i].j); mirror::Object* val = BoxPrimitive(Primitive::GetType(shorty[i + 1]), jv).Ptr(); if (val == nullptr) { CHECK(soa.Self()->IsExceptionPending()); |