Skip to content

Commit 7503ca4

Browse files
Add braces to if
1 parent a274f0c commit 7503ca4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,18 +432,19 @@ CIRRecordLowering::accumulateBitFields(RecordDecl::field_iterator field,
432432
bestEnd = field;
433433
bestClipped = false;
434434
}
435-
if (barrier)
435+
if (barrier) {
436436
// The next field is a barrier that we cannot merge across.
437437
installBest = true;
438-
else if (cirGenTypes.getCGModule()
439-
.getCodeGenOpts()
440-
.FineGrainedBitfieldAccesses)
438+
} else if (cirGenTypes.getCGModule()
439+
.getCodeGenOpts()
440+
.FineGrainedBitfieldAccesses) {
441441
installBest = true;
442-
else
442+
} else {
443443
// Otherwise, we're not installing. Update the bit size
444444
// of the current span to go all the way to limitOffset, which is
445445
// the (aligned) offset of next bitfield to consider.
446446
bitSizeSinceBegin = astContext.toBits(limitOffset - beginOffset);
447+
}
447448
}
448449
}
449450
}

0 commit comments

Comments
 (0)