Skip to content

Commit b6cf794

Browse files
committed
AST: Fix some -Wunused-but-set-variable warnings.
1 parent 119b38e commit b6cf794

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4521,7 +4521,7 @@ void PrintAST::visitSubscriptDecl(SubscriptDecl *decl) {
45214521
Printer.callPrintStructurePre(PrintStructureKind::FunctionReturnType);
45224522

45234523
if (!Options.SuppressSendingArgsAndResults) {
4524-
if (auto typeRepr = decl->getElementTypeRepr()) {
4524+
if (decl->getElementTypeRepr()) {
45254525
if (isa<SendingTypeRepr>(decl->getResultTypeRepr()))
45264526
Printer << "sending ";
45274527
}

lib/AST/ProtocolConformanceRef.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ProtocolConformanceRef::subst(Type origType, InFlightSubstitution &IFS) const {
9898

9999
// If the type is an opaque archetype, the conformance will remain abstract,
100100
// unless we're specifically substituting opaque types.
101-
if (auto origArchetype = origType->getAs<OpaqueTypeArchetypeType>()) {
101+
if (origType->getAs<OpaqueTypeArchetypeType>()) {
102102
if (!IFS.shouldSubstituteOpaqueArchetypes()) {
103103
return forAbstract(origType.subst(IFS), proto);
104104
}

0 commit comments

Comments
 (0)