Skip to content

Commit 5bdab96

Browse files
committed
Merge pull request #809 from aaronraimist/master
SimplifyCFG: Fix typo, Fist to First
2 parents 1f165b4 + b196e79 commit 5bdab96

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/SILOptimizer/Transforms/SimplifyCFG.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ static SILValue skipInvert(SILValue Cond, bool &Inverted,
11971197

11981198
/// \brief Returns the first cond_fail if it is the first side-effect
11991199
/// instruction in this block.
1200-
static CondFailInst *getFistCondFail(SILBasicBlock *BB) {
1200+
static CondFailInst *getFirstCondFail(SILBasicBlock *BB) {
12011201
auto It = BB->begin();
12021202
CondFailInst *CondFail = nullptr;
12031203
// Skip instructions that don't have side-effects.
@@ -1216,7 +1216,7 @@ static CondFailInst *getFistCondFail(SILBasicBlock *BB) {
12161216
/// If \p Inverted is true, \p BB is on the false-edge of the cond_br.
12171217
static CondFailInst *getUnConditionalFail(SILBasicBlock *BB, SILValue Cond,
12181218
bool Inverted) {
1219-
CondFailInst *CondFail = getFistCondFail(BB);
1219+
CondFailInst *CondFail = getFirstCondFail(BB);
12201220
if (!CondFail)
12211221
return nullptr;
12221222

@@ -2024,7 +2024,7 @@ bool RemoveUnreachable::run() {
20242024
///
20252025
static bool tryMoveCondFailToPreds(SILBasicBlock *BB) {
20262026

2027-
CondFailInst *CFI = getFistCondFail(BB);
2027+
CondFailInst *CFI = getFirstCondFail(BB);
20282028
if (!CFI)
20292029
return false;
20302030

@@ -3484,4 +3484,3 @@ SILTransform *swift::createSROABBArgs() { return new SROABBArgs(); }
34843484
SILTransform *swift::createSimplifyBBArgs() {
34853485
return new SimplifyBBArgs();
34863486
}
3487-

0 commit comments

Comments
 (0)