8228420: compile error in shenandoahSupport.cpp with clang 9
authormbaesken
Fri, 19 Jul 2019 12:35:33 +0200
changeset 55747 4d421888ad63
parent 55746 709913d8ace9
child 55748 c6923eaecd7b
8228420: compile error in shenandoahSupport.cpp with clang 9 Reviewed-by: shade
src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
--- a/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp	Fri Jul 12 19:37:25 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp	Fri Jul 19 12:35:33 2019 +0200
@@ -3016,7 +3016,7 @@
 }
 
 uint ShenandoahLoadReferenceBarrierNode::hash() const {
-  return Node::hash() + _native ? 1 : 0;
+  return Node::hash() + (_native ? 1 : 0);
 }
 
 bool ShenandoahLoadReferenceBarrierNode::cmp( const Node &n ) const {