OSDN Git Service

ART: Fix SelectKind to work with nullptr
authorChao-ying Fu <chao-ying.fu@intel.com>
Wed, 1 Oct 2014 23:53:04 +0000 (16:53 -0700)
committerChao-ying Fu <chao-ying.fu@intel.com>
Wed, 1 Oct 2014 23:53:04 +0000 (16:53 -0700)
commit8ac41af13c8e48ede6a7c8a3bf2fb1a414326038
tree27944a34ef7a7389aab7785dc1b00df8d4f8e417
parent37241e5c70aa599ff7383ad18af5ddf5694a7144
ART: Fix SelectKind to work with nullptr

This patch fixes SelectKind to return kSelectNone
when MIR is nullptr to avoid segmentation fault.

Change-Id: I174ff5c153e03c1a1e2ef8bc68f7fb50e8a9bf3f
Signed-off-by: Chao-ying Fu <chao-ying.fu@intel.com>
compiler/dex/mir_optimization.cc