Skip to content

Commit c907650

Browse files
committed
[sil-verifier] Convert a if (x && isa<Inst>(x)) -> (isa_and_present<Inst>(x)).
1 parent 94763c8 commit c907650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/Verifier/FlowSensitiveVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ void swift::silverifier::verifyFlowSensitiveRules(SILFunction *F) {
349349
state.handleScopeEndingInst(i);
350350
} else if (!state.Stack.empty() && op == state.Stack.back()) {
351351
state.Stack.pop_back();
352-
if (beginInst && isa<BeginApplyInst>(beginInst))
352+
if (llvm::isa_and_present<BeginApplyInst>(beginInst))
353353
state.handleScopeEndingInst(i);
354354
} else {
355355
verificationFailure(

0 commit comments

Comments
 (0)