hotspot/src/share/vm/c1/c1_Instruction.cpp
changeset 15476 5e4cda2ccd0b
parent 13728 882756847a04
child 16611 6807a703dd6b
equal deleted inserted replaced
15475:73896d91270c 15476:5e4cda2ccd0b
   186 }
   186 }
   187 
   187 
   188 
   188 
   189 ciType* LoadIndexed::declared_type() const {
   189 ciType* LoadIndexed::declared_type() const {
   190   ciType* array_type = array()->declared_type();
   190   ciType* array_type = array()->declared_type();
   191   if (array_type == NULL) {
   191   if (array_type == NULL || !array_type->is_loaded()) {
   192     return NULL;
   192     return NULL;
   193   }
   193   }
   194   assert(array_type->is_array_klass(), "what else?");
   194   assert(array_type->is_array_klass(), "what else?");
   195   ciArrayKlass* ak = (ciArrayKlass*)array_type;
   195   ciArrayKlass* ak = (ciArrayKlass*)array_type;
   196   return ak->element_type();
   196   return ak->element_type();