changeset 13035:e1a373e5766e mvt

TypeValueTypePtr::NOTNULL should be available with EnableMVT
author thartmann
date Mon, 26 Jun 2017 14:31:07 +0200
parents 5f124977ad2c
children 7dc3edf441c6
files src/share/vm/opto/type.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/type.cpp	Mon Jun 26 14:07:04 2017 +0200
+++ b/src/share/vm/opto/type.cpp	Mon Jun 26 14:31:07 2017 +0200
@@ -591,7 +591,7 @@
 
   TypeNarrowKlass::NULL_PTR = TypeNarrowKlass::make( TypePtr::NULL_PTR );
 
-  TypeValueTypePtr::NOTNULL = EnableValhalla ? TypeValueTypePtr::make(TypePtr::NotNull, current->env()->___Value_klass()->as_value_klass()) : NULL;
+  TypeValueTypePtr::NOTNULL = (EnableValhalla || EnableMVT) ? TypeValueTypePtr::make(TypePtr::NotNull, current->env()->___Value_klass()->as_value_klass()) : NULL;
 
   mreg2type[Op_Node] = Type::BOTTOM;
   mreg2type[Op_Set ] = 0;