Fix typo in INSTANCE_OF bytecode analysis
Should have been VRegA_22c instead of VRegB_22c.
Test: manual
Change-Id: I0799465a65b45f64eb5cd229c2cf96959067cc97
diff --git a/tools/dexanalyze/dexanalyze_bytecode.cc b/tools/dexanalyze/dexanalyze_bytecode.cc
index 6bc8921..7e9f177 100644
--- a/tools/dexanalyze/dexanalyze_bytecode.cc
+++ b/tools/dexanalyze/dexanalyze_bytecode.cc
@@ -383,7 +383,7 @@
case Instruction::INSTANCE_OF: {
uint32_t type_idx = inst->VRegC_22c();
uint32_t in_reg = inst->VRegB_22c();
- uint32_t out_reg = inst->VRegB_22c();
+ uint32_t out_reg = inst->VRegA_22c();
if (count_types_) {
++current_type.types_.FindOrAdd(type_idx)->second;
} else {