hotspot/src/share/vm/opto/graphKit.cpp
changeset 202 dc13bf0e5d5d
parent 196 9877b922afc4
child 236 9a04268c8eea
--- a/hotspot/src/share/vm/opto/graphKit.cpp	Fri Feb 22 17:55:13 2008 -0800
+++ b/hotspot/src/share/vm/opto/graphKit.cpp	Mon Feb 25 15:05:44 2008 -0800
@@ -1447,7 +1447,7 @@
 //-------------------------array_element_address-------------------------
 Node* GraphKit::array_element_address(Node* ary, Node* idx, BasicType elembt,
                                       const TypeInt* sizetype) {
-  uint shift  = exact_log2(type2aelembytes[elembt]);
+  uint shift  = exact_log2(type2aelembytes(elembt));
   uint header = arrayOopDesc::base_offset_in_bytes(elembt);
 
   // short-circuit a common case (saves lots of confusing waste motion)