< prev index next >

src/hotspot/share/opto/machnode.cpp

Print this page
@@ -389,11 +389,11 @@
    const Type* t = base->bottom_type();
    if (t->isa_narrowoop() && CompressedOops::shift() == 0) {
      // 32-bit unscaled narrow oop can be the base of any address expression
      t = t->make_ptr();
    }
-   if (t->isa_narrowklass() && CompressedKlassPointers::shift() == 0) {
+   if (t->isa_narrowklass() && UseCompressedClassPointers && CompressedKlassPointers::shift() == 0) {
      // 32-bit unscaled narrow oop can be the base of any address expression
      t = t->make_ptr();
    }
    if (t->isa_intptr_t() && offset != 0 && offset != Type::OffsetBot) {
      // We cannot assert that the offset does not look oop-ish here.
< prev index next >