Skip to content

Commit 3560e68

Browse files
author
Kim Barrett
committedJan 8, 2024
8322815: Eliminate -Wparentheses warnings in shenandoah code
Reviewed-by: shade, zgu
1 parent faa9c69 commit 3560e68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2158,7 +2158,7 @@ void MemoryGraphFixer::collect_memory_nodes() {
21582158
assert(m != nullptr || (c->is_Loop() && j == LoopNode::LoopBackControl && iteration == 1) || _phase->C->has_irreducible_loop() || has_never_branch(_phase->C->root()), "expect memory state");
21592159
if (m != nullptr) {
21602160
if (m == prev_region && ((c->is_Loop() && j == LoopNode::LoopBackControl) || (prev_region->is_Phi() && prev_region->in(0) == c))) {
2161-
assert(c->is_Loop() && j == LoopNode::LoopBackControl || _phase->C->has_irreducible_loop() || has_never_branch(_phase->C->root()), "");
2161+
assert((c->is_Loop() && j == LoopNode::LoopBackControl) || _phase->C->has_irreducible_loop() || has_never_branch(_phase->C->root()), "");
21622162
// continue
21632163
} else if (unique == nullptr) {
21642164
unique = m;

0 commit comments

Comments
 (0)
Please sign in to comment.