diff options
author | 2015-03-21 01:47:16 +0000 | |
---|---|---|
committer | 2015-03-21 01:47:17 +0000 | |
commit | 7aa81a451386350dd03c98adfade2ed7b88f611e (patch) | |
tree | 83bab1196e677b6b24f96866ab407cdeff69b6c8 /compiler/optimizing | |
parent | bd891ccdef8d9677f64e26912c0161de31bb42bd (diff) | |
parent | 9ccd151d0d27a729f88af9d00285afe4d147981a (diff) |
Merge "Fix verifier handling of empty switch as last instruction."
Diffstat (limited to 'compiler/optimizing')
-rw-r--r-- | compiler/optimizing/builder.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc index 2cac93dd8c..ec7fd62975 100644 --- a/compiler/optimizing/builder.cc +++ b/compiler/optimizing/builder.cc @@ -1024,8 +1024,6 @@ void HGraphBuilder::BuildSparseSwitch(const Instruction& instruction, uint32_t d HInstruction* value = LoadLocal(instruction.VRegA(), Primitive::kPrimInt); uint16_t num_entries = table.GetNumEntries(); - // There should be at least one entry here. - DCHECK_GT(num_entries, 0U); for (size_t i = 0; i < num_entries; i++) { BuildSwitchCaseHelper(instruction, i, i == static_cast<size_t>(num_entries) - 1, table, value, |