hotspot/src/share/vm/c1/c1_Instruction.cpp
changeset 15476 5e4cda2ccd0b
parent 13728 882756847a04
child 16611 6807a703dd6b
--- a/hotspot/src/share/vm/c1/c1_Instruction.cpp	Fri Jan 25 16:50:33 2013 -0800
+++ b/hotspot/src/share/vm/c1/c1_Instruction.cpp	Mon Feb 04 09:11:21 2013 +0100
@@ -188,7 +188,7 @@
 
 ciType* LoadIndexed::declared_type() const {
   ciType* array_type = array()->declared_type();
-  if (array_type == NULL) {
+  if (array_type == NULL || !array_type->is_loaded()) {
     return NULL;
   }
   assert(array_type->is_array_klass(), "what else?");