diff options
author | Vladimir Marko <vmarko@google.com> | 2018-07-03 09:18:32 +0100 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2018-07-03 09:18:32 +0100 |
commit | 35d5b8a2c5d2fce03be59aa003c3bf3c1b481be0 (patch) | |
tree | 7665f6d1527be61af13c8ef53f10833dd4200cfd /runtime/quick_exception_handler.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/quick_exception_handler.cc')
-rw-r--r-- | runtime/quick_exception_handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc index 8b99b9f9c8..2dbde6f510 100644 --- a/runtime/quick_exception_handler.cc +++ b/runtime/quick_exception_handler.cc @@ -472,7 +472,7 @@ class DeoptimizeStackVisitor FINAL : public StackVisitor { } static VRegKind GetVRegKind(uint16_t reg, const std::vector<int32_t>& kinds) { - return static_cast<VRegKind>(kinds.at(reg * 2)); + return static_cast<VRegKind>(kinds[reg * 2]); } QuickExceptionHandler* const exception_handler_; |