Skip to content

Commit 688349f

Browse files
committed
Address comments from swiftlang#33504
1 parent 865d54c commit 688349f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/SILOptimizer/ARC/ARCSequenceOptUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "swift/SIL/SILInstruction.h"
2222

2323
namespace swift {
24-
bool isARCSignificantTerminator(TermInst *TI);
24+
bool isARCSignificantTerminator(TermInst *TI);
2525
} // end namespace swift
2626

2727
#endif

lib/SILOptimizer/ARC/GlobalARCSequenceDataflow.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,8 @@ bool ARCSequenceDataflowEvaluator::processBBBottomUp(
222222
SetFactory);
223223

224224
auto II = BB.rbegin();
225-
if (isa<TermInst>(*II)) {
226-
if (!isARCSignificantTerminator(&cast<TermInst>(*II))) {
227-
II++;
228-
}
225+
if (!isARCSignificantTerminator(&cast<TermInst>(*II))) {
226+
II++;
229227
}
230228

231229
// For each instruction I in BB visited in reverse...

0 commit comments

Comments
 (0)