Skip to content

Commit 6896000

Browse files
committed
[gardening] Remove unused variable.
1 parent df6d25f commit 6896000

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/SILOptimizer/FunctionSignatureTransforms/ExistentialTransform.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ ExistentialTransform::createExistentialSpecializedFunctionType() {
322322
SILModule &M = F->getModule();
323323
auto &Ctx = M.getASTContext();
324324
GenericSignature NewGenericSig;
325-
GenericEnvironment *NewGenericEnv;
326325

327326
/// If the original function is generic, then maintain the same.
328327
auto OrigGenericSig = FTy->getInvocationGenericSignature();
@@ -341,8 +340,6 @@ ExistentialTransform::createExistentialSpecializedFunctionType() {
341340
std::move(Requirements)},
342341
GenericSignature());
343342

344-
NewGenericEnv = NewGenericSig->getGenericEnvironment();
345-
346343
/// Create a lambda for GenericParams.
347344
auto getCanonicalType = [&](Type t) -> CanType {
348345
return t->getCanonicalType(NewGenericSig);

0 commit comments

Comments
 (0)