8279533: Bad indentation and missing curly braces in BlockBegin::set_end

Reviewed-by: shade
This commit is contained in:
Ludvig Janiuk 2022-01-05 20:09:32 +00:00 committed by Aleksey Shipilev
parent 523300e796
commit ab490534a1

@ -529,9 +529,10 @@ void BlockBegin::set_end(BlockEnd* new_end) { // Assumes that no predecessor of
if (new_end == _end) return;
// Remove this block as predecessor of its current successors
if (_end != NULL)
for (int i = 0; i < number_of_sux(); i++) {
sux_at(i)->remove_predecessor(this);
if (_end != NULL) {
for (int i = 0; i < number_of_sux(); i++) {
sux_at(i)->remove_predecessor(this);
}
}
_end = new_end;