Skip to content

Commit 2990c65

Browse files
committed
NFC: Address some unused variable warnings.
1 parent 85437a2 commit 2990c65

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

lib/IRGen/GenCall.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4995,8 +4995,6 @@ void IRGenFunction::emitEpilogue() {
49954995
CurFn->addFnAttr(llvm::Attribute::getWithUWTableKind(
49964996
*IGM.LLVMContext, llvm::UWTableKind::Default));
49974997

4998-
auto deploymentAvailability =
4999-
AvailabilityContext::forDeploymentTarget(IGM.Context);
50004998
llvm::Constant *personality;
50014999

50025000
if (IGM.isSwiftExceptionPersonalityFeatureAvailable()) {

lib/SILGen/SILGenPoly.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4495,7 +4495,6 @@ void ResultPlanner::planExpandedIntoDirect(AbstractionPattern innerOrigType,
44954495
assert(outerSubstType->isAny());
44964496

44974497
auto *module = SGF.getModule().getSwiftModule();
4498-
auto &ctx = SGF.getASTContext();
44994498

45004499
auto opaque = AbstractionPattern::getOpaque();
45014500
auto anyType = SGF.getLoweredType(opaque, outerSubstType);

lib/SILOptimizer/Mandatory/ConsumeOperatorCopyableAddressesChecker.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2461,7 +2461,6 @@ class ConsumeOperatorCopyableAddressesCheckerPass
24612461
: public SILFunctionTransform {
24622462
void run() override {
24632463
auto *fn = getFunction();
2464-
auto &astContext = fn->getASTContext();
24652464

24662465
// Don't rerun diagnostics on deserialized functions.
24672466
if (getFunction()->wasDeserializedCanonical())

0 commit comments

Comments
 (0)