hotspot/src/share/vm/opto/phaseX.hpp
changeset 46532 7c122c98399d
parent 36309 61fbc15c4d23
--- a/hotspot/src/share/vm/opto/phaseX.hpp	Fri Jun 09 09:20:13 2017 +0200
+++ b/hotspot/src/share/vm/opto/phaseX.hpp	Fri Jun 09 09:27:10 2017 +0200
@@ -211,6 +211,7 @@
   // If you want the type of a very new (untransformed) node,
   // you must use type_or_null, and test the result for NULL.
   const Type* type(const Node* n) const {
+    assert(_pnum != Ideal_Loop, "should not be used from PhaseIdealLoop");
     assert(n != NULL, "must not be null");
     const Type* t = _types.fast_lookup(n->_idx);
     assert(t != NULL, "must set before get");
@@ -219,6 +220,7 @@
   // Get a previously recorded type for the node n,
   // or else return NULL if there is none.
   const Type* type_or_null(const Node* n) const {
+    assert(_pnum != Ideal_Loop, "should not be used from PhaseIdealLoop");
     return _types.fast_lookup(n->_idx);
   }
   // Record a type for a node.