Skip to content

Commit f253da0

Browse files
committed
ClangImporter: Don't build generic environments of protocols
AST does it for us.
1 parent 6e593f1 commit f253da0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4407,9 +4407,6 @@ namespace {
44074407
if (!result->isRequirementSignatureComputed())
44084408
result->computeRequirementSignature();
44094409

4410-
auto *env = Impl.buildGenericEnvironment(result->getGenericParams(), dc);
4411-
result->setGenericEnvironment(env);
4412-
44134410
result->setMemberLoader(&Impl, 0);
44144411

44154412
// Add the protocol decl to ExternalDefinitions so that IRGen can emit

0 commit comments

Comments
 (0)