src/hotspot/share/ci/ciMethod.cpp
changeset 58273 08a5148e7c4e
parent 57745 789e967c2731
child 58679 9c3209ff7550
child 59056 15936b142f86
--- a/src/hotspot/share/ci/ciMethod.cpp	Mon Sep 23 14:39:11 2019 -0400
+++ b/src/hotspot/share/ci/ciMethod.cpp	Mon Sep 23 14:49:04 2019 -0400
@@ -1454,8 +1454,8 @@
 // ------------------------------------------------------------------
 
 static BasicType erase_to_word_type(BasicType bt) {
-  if (is_subword_type(bt)) return T_INT;
-  if (bt == T_ARRAY)       return T_OBJECT;
+  if (is_subword_type(bt))   return T_INT;
+  if (is_reference_type(bt)) return T_OBJECT;
   return bt;
 }