Skip to content

Commit 7e3e55a

Browse files
committed
8368573: MultiBranchNode::required_outcnt should return an unsigned int
Reviewed-by: chagedorn, dfenacci, fandreuzzi
1 parent 692c20c commit 7e3e55a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hotspot/share/opto/cfgnode.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class MultiBranchNode : public MultiNode {
313313
init_class_id(Class_MultiBranch);
314314
}
315315
// returns required number of users to be well formed.
316-
virtual int required_outcnt() const = 0;
316+
virtual uint required_outcnt() const = 0;
317317
};
318318

319319
//------------------------------IfNode-----------------------------------------
@@ -435,7 +435,7 @@ class IfNode : public MultiBranchNode {
435435
virtual const Type *bottom_type() const { return TypeTuple::IFBOTH; }
436436
virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
437437
virtual const Type* Value(PhaseGVN* phase) const;
438-
virtual int required_outcnt() const { return 2; }
438+
virtual uint required_outcnt() const { return 2; }
439439
virtual const RegMask &out_RegMask() const;
440440
Node* fold_compares(PhaseIterGVN* phase);
441441
static Node* up_one_dom(Node* curr, bool linear_only = false);
@@ -591,7 +591,7 @@ class PCTableNode : public MultiBranchNode {
591591
virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
592592
virtual const Type *bottom_type() const;
593593
virtual bool pinned() const { return true; }
594-
virtual int required_outcnt() const { return _size; }
594+
virtual uint required_outcnt() const { return _size; }
595595
};
596596

597597
//------------------------------JumpNode---------------------------------------
@@ -716,7 +716,7 @@ class NeverBranchNode : public MultiBranchNode {
716716
virtual const Type *bottom_type() const { return TypeTuple::IFBOTH; }
717717
virtual const Type* Value(PhaseGVN* phase) const;
718718
virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
719-
virtual int required_outcnt() const { return 2; }
719+
virtual uint required_outcnt() const { return 2; }
720720
virtual void emit(C2_MacroAssembler *masm, PhaseRegAlloc *ra_) const { }
721721
virtual uint size(PhaseRegAlloc *ra_) const { return 0; }
722722
#ifndef PRODUCT

0 commit comments

Comments
 (0)