OSDN Git Service

ART: Allow PackedSwitch instructions with zero targets
authorDavid Brazdil <dbrazdil@google.com>
Wed, 17 Jun 2015 14:38:35 +0000 (15:38 +0100)
committerDavid Brazdil <dbrazdil@google.com>
Wed, 17 Jun 2015 16:18:32 +0000 (17:18 +0100)
commit241f9c41924e33e0c3bab9a7c4306397458749ca
treebdffe0a82c85051607a5ecd61056262836eac212
parentedb83c606e034d76bed1331f34cdc435df47bb95
ART: Allow PackedSwitch instructions with zero targets

Optimizing's Builder wrongly assumed that a PackedSwitch always has
at least one target. This patch removes the corresponding DCHECK and
adds a regression test case.

Bug:21863783
Change-Id: I32b7033ed38de6f1d1a6ee5d5bf12f3a47c9b37e
compiler/optimizing/builder.cc
test/501-regression-packed-switch/expected.txt [new file with mode: 0644]
test/501-regression-packed-switch/info.txt [new file with mode: 0644]
test/501-regression-packed-switch/smali/Test.smali [new file with mode: 0644]
test/501-regression-packed-switch/src/Main.java [new file with mode: 0644]