OSDN Git Service

Test component type for errors too.
authorAart Bik <ajcbik@google.com>
Mon, 25 Apr 2016 19:51:37 +0000 (12:51 -0700)
committerAart Bik <ajcbik@google.com>
Mon, 25 Apr 2016 23:21:34 +0000 (16:21 -0700)
commitf417ff44d1eb111854d7a213f106912b3dd9e3d4
treebe69b00348b8d296a5bae7dd2c17d9f9a2b8ba0e
parentdbea8b4eacb62b357bce1bc299c8442788b288a1
Test component type for errors too.
With regression test.

Rationale:
Moved erroneous check in convenience method, so we
put all the same logic in one place. When testing
for erroneous T[], check both the array type
as well at the component type T for errors
(it is possible T[] is not marked erroneous
even though T is eventually).

BUG=28358598

Change-Id: I11339a976dc83e0493a99e6bb97f3a058ca3f796
compiler/optimizing/nodes.cc
compiler/optimizing/reference_type_propagation.cc
test/595-error-class/expected.txt [new file with mode: 0644]
test/595-error-class/info.txt [new file with mode: 0644]
test/595-error-class/smali/error.smali [new file with mode: 0644]
test/595-error-class/smali/merge.smali [new file with mode: 0644]
test/595-error-class/smali/super.smali [new file with mode: 0644]
test/595-error-class/src/Main.java [new file with mode: 0644]