diff --git a/include/swift/SIL/SILInstruction.h b/include/swift/SIL/SILInstruction.h index c4555c2dcbfd8..e165baac14bf2 100644 --- a/include/swift/SIL/SILInstruction.h +++ b/include/swift/SIL/SILInstruction.h @@ -7829,12 +7829,12 @@ bool ApplyInstBase::isCalleeDynamicallyReplaceable() const { SILValue Callee = getCalleeOrigin(); while (true) { - if (auto *FRI = dyn_cast(Callee)) + if (isa(Callee)) return false; - if (auto *FRI = dyn_cast(Callee)) + if (isa(Callee)) return true; - if (auto *FRI = dyn_cast(Callee)) + if (isa(Callee)) return true; if (auto *PAI = dyn_cast(Callee)) { diff --git a/lib/Sema/TypeCheckStmt.cpp b/lib/Sema/TypeCheckStmt.cpp index 40797ca4821b6..00698bc19ab0e 100644 --- a/lib/Sema/TypeCheckStmt.cpp +++ b/lib/Sema/TypeCheckStmt.cpp @@ -807,7 +807,7 @@ class StmtChecker : public StmtVisitor { auto nextResultType = OptionalType::get(conformance->getTypeWitnessByName( sequenceType, TC.Context.Id_Element)); - auto *genBinding = PatternBindingDecl::createImplicit( + PatternBindingDecl::createImplicit( TC.Context, StaticSpellingKind::None, genPat, new (TC.Context) OpaqueValueExpr(S->getInLoc(), nextResultType), DC, /*VarLoc*/ S->getForLoc());