summaryrefslogtreecommitdiff
path: root/libdexfile/dex/dex_instruction-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdexfile/dex/dex_instruction-inl.h')
-rw-r--r--libdexfile/dex/dex_instruction-inl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libdexfile/dex/dex_instruction-inl.h b/libdexfile/dex/dex_instruction-inl.h
index a1e72677d8..5613ec5626 100644
--- a/libdexfile/dex/dex_instruction-inl.h
+++ b/libdexfile/dex/dex_instruction-inl.h
@@ -532,7 +532,12 @@ inline bool Instruction::HasVRegH() const {
}
inline int32_t Instruction::VRegH() const {
- switch (FormatOf(Opcode())) {
+ return VRegH(FormatOf(Opcode()));
+}
+
+inline int32_t Instruction::VRegH(Format format) const {
+ DCHECK_EQ(format, FormatOf(Opcode()));
+ switch (format) {
case k45cc: return VRegH_45cc();
case k4rcc: return VRegH_4rcc();
default :