Skip to content

Commit 1d62567

Browse files
committed
AST: Clean up dead code in GenericSignatureBuilder
1 parent 28276b5 commit 1d62567

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3288,7 +3288,7 @@ void RewriteTreeNode::mergeIntoRec(
32883288
for (auto child : children)
32893289
child->mergeIntoRec(other, matchPath);
32903290

3291-
if (auto assocType = getMatch())
3291+
if (getMatch())
32923292
matchPath.pop_back();
32933293
}
32943294

@@ -3646,8 +3646,6 @@ static Type substituteConcreteType(GenericSignatureBuilder &builder,
36463646
proto, parentType, ProtocolConformanceRef(proto));
36473647

36483648
type = type.subst(subMap, SubstFlags::UseErrorType);
3649-
if (!type)
3650-
return ErrorType::get(proto->getASTContext());
36513649
} else {
36523650
// Substitute in the superclass type.
36533651
auto superclass = basePA->getEquivalenceClassIfPresent()->superclass;

0 commit comments

Comments
 (0)