Skip to content

Commit c70a037

Browse files
committed
Fix typo and apply clang-format
1 parent 1999c90 commit c70a037

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/lib/CodeGen/CGCoroutine.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,8 @@ struct CallCoroDelete final : public EHScopeStack::Cleanup {
615615
// builds a single call to a deallocation function which is safe to emit
616616
// multiple times.
617617
void Emit(CodeGenFunction &CGF, Flags) override {
618-
bool Splited = CGF.CurCoro.Data->InRamp != nullptr;
619-
if (!Splited)
618+
bool FirstEmit = CGF.CurCoro.Data->InRamp == nullptr;
619+
if (FirstEmit)
620620
splitCleanupBB(CGF);
621621
EmitCoroFree(CGF);
622622
}
@@ -646,8 +646,7 @@ struct CallCoroDelete final : public EHScopeStack::Cleanup {
646646
if (S->getReturnStmt()) {
647647
// Clone cleanup block before EmitCoroFree()
648648
llvm::ValueToValueMapTy VMap{};
649-
CoroData.RampCleanupBB =
650-
llvm::CloneBasicBlock(CleanupBB, VMap, ".ramp");
649+
CoroData.RampCleanupBB = llvm::CloneBasicBlock(CleanupBB, VMap, ".ramp");
651650
}
652651
}
653652

0 commit comments

Comments
 (0)