equal
deleted
inserted
replaced
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(); |