src/share/vm/c1/c1_Instruction.cpp

changeset 4536
37c18711a0df
parent 4037
da91efe96a93
child 4860
46f6f063b272
equal deleted inserted replaced
4535:9fae07c31641 4536:37c18711a0df
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();

mercurial