Skip to content

Commit 397d059

Browse files
committed
SILOptimizer: Fix some warnings in recent partial specialization changes
1 parent 683a7f4 commit 397d059

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/SILOptimizer/Utils/Generics.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,8 +1257,6 @@ void FunctionSignaturePartialSpecializer::addRequirements(
12571257
/// Add requirements from the caller's signature.
12581258
void FunctionSignaturePartialSpecializer::addCallerRequirements() {
12591259
for (auto CallerArchetype : UsedCallerArchetypes) {
1260-
auto CallerGenericParam =
1261-
CallerGenericEnv->mapTypeOutOfContext(CallerArchetype);
12621260
// Add requirements for this caller generic parameter and its dependent
12631261
// types.
12641262
SmallVector<Requirement, 4> CollectedReqs;
@@ -1269,7 +1267,7 @@ void FunctionSignaturePartialSpecializer::addCallerRequirements() {
12691267
for (auto Req : CollectedReqs) {
12701268
Req.dump();
12711269
}
1272-
CallerInterfaceToSpecializedInterfaceMap.dump();
1270+
CallerInterfaceToSpecializedInterfaceMap.dump(llvm::dbgs());
12731271
);
12741272
addRequirements(CollectedReqs, CallerInterfaceToSpecializedInterfaceMap);
12751273
}
@@ -1446,7 +1444,6 @@ void ReabstractionInfo::performPartialSpecializationPreparation(
14461444
SILFunction *Caller, SILFunction *Callee,
14471445
ArrayRef<Substitution> ParamSubs) {
14481446
SILModule &M = Callee->getModule();
1449-
auto &Ctx = M.getASTContext();
14501447

14511448
// Caller is the SILFunction containing the apply instruction.
14521449
CanGenericSignature CallerGenericSig;

0 commit comments

Comments
 (0)