hotspot/src/share/vm/c1/c1_Instruction.cpp
changeset 13391 30245956af37
parent 10509 43d670e5701e
child 13487 75aa4880b15f
--- a/hotspot/src/share/vm/c1/c1_Instruction.cpp	Mon Jul 23 13:04:59 2012 -0700
+++ b/hotspot/src/share/vm/c1/c1_Instruction.cpp	Tue Jul 24 10:51:00 2012 -0700
@@ -161,6 +161,12 @@
   return NULL;
 }
 
+ciType* Constant::exact_type() const {
+  if (type()->is_object()) {
+    return type()->as_ObjectType()->exact_type();
+  }
+  return NULL;
+}
 
 ciType* LoadIndexed::exact_type() const {
   ciType* array_type = array()->exact_type();