Skip to content

Commit 0216435

Browse files
committed
clang-format
1 parent b603424 commit 0216435

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

clang/lib/CodeGen/CGObjCRuntime.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ void CGObjCRuntime::EmitTryCatchStmt(CodeGenFunction &CGF,
230230
CodeGenFunction::LexicalScope Cleanups(CGF, Handler.Body->getSourceRange());
231231
SaveAndRestore RevertAfterScope(CGF.CurrentFuncletPad);
232232
if (useFunclets) {
233-
llvm::BasicBlock::iterator CPICandidate = Handler.Block->getFirstNonPHIIt();
233+
llvm::BasicBlock::iterator CPICandidate =
234+
Handler.Block->getFirstNonPHIIt();
234235
if (CPICandidate != Handler.Block->end()) {
235236
if (auto *CPI = dyn_cast_or_null<llvm::CatchPadInst>(CPICandidate)) {
236237
CGF.CurrentFuncletPad = CPI;

llvm/lib/IR/Verifier.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6521,7 +6521,8 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
65216521
const ColorVector &CV = BlockEHFuncletColors.find(CallBB)->second;
65226522
assert(CV.size() > 0 && "Uncolored block");
65236523
for (BasicBlock *ColorFirstBB : CV)
6524-
if (auto It = ColorFirstBB->getFirstNonPHIIt(); It != ColorFirstBB->end())
6524+
if (auto It = ColorFirstBB->getFirstNonPHIIt();
6525+
It != ColorFirstBB->end())
65256526
if (dyn_cast_or_null<FuncletPadInst>(&*It))
65266527
InEHFunclet = true;
65276528

llvm/lib/Transforms/Coroutines/CoroFrame.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,8 @@ static void rewritePHIs(BasicBlock &BB) {
14691469
LandingPadInst *LandingPad = nullptr;
14701470
PHINode *ReplPHI = nullptr;
14711471
if (!BB.empty()) {
1472-
if ((LandingPad = dyn_cast_or_null<LandingPadInst>(BB.getFirstNonPHIIt()))) {
1472+
if ((LandingPad =
1473+
dyn_cast_or_null<LandingPadInst>(BB.getFirstNonPHIIt()))) {
14731474
// ehAwareSplitEdge will clone the LandingPad in all the edge blocks.
14741475
// We replace the original landing pad with a PHINode that will collect the
14751476
// results from all of them.

llvm/lib/Transforms/Coroutines/CoroSplit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ static void updateScopeLine(Instruction *ActiveSuspend,
832832
}
833833

834834
BasicBlock::iterator Successor =
835-
ActiveSuspend->getNextNonDebugInstruction()->getIterator();
835+
ActiveSuspend->getNextNonDebugInstruction()->getIterator();
836836
// Corosplit splits the BB around ActiveSuspend, so the meaningful
837837
// instructions are not in the same BB.
838838
if (auto *Branch = dyn_cast_or_null<BranchInst>(Successor);

0 commit comments

Comments
 (0)