< prev index next >

src/share/vm/opto/locknode.cpp

Print this page

        

@@ -32,11 +32,11 @@
 const RegMask &BoxLockNode::in_RegMask(uint i) const {
   return _inmask;
 }
 
 const RegMask &BoxLockNode::out_RegMask() const {
-  return *Matcher::idealreg2regmask[Op_RegP];
+  return *Matcher::idealreg2regmask[static_cast<uint>(Opcodes::Op_RegP)];
 }
 
 uint BoxLockNode::size_of() const { return sizeof(*this); }
 
 BoxLockNode::BoxLockNode( int slot ) : Node( Compile::current()->root() ),
< prev index next >