Skip to content

Commit b968125

Browse files
authored
Merge pull request #71561 from tshortli/warnings
NFC: Address some warnings
2 parents 72486c9 + 91f14e3 commit b968125

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-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/SIL/IR/SILPrinter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,10 +2533,12 @@ class SILPrinter : public SILInstructionVisitor<SILPrinter> {
25332533
switch (MDI->dependenceKind()) {
25342534
case MarkDependenceKind::Unresolved:
25352535
*this << "[unresolved] ";
2536+
break;
25362537
case MarkDependenceKind::Escaping:
25372538
break;
25382539
case MarkDependenceKind::NonEscaping:
25392540
*this << "[nonescaping] ";
2541+
break;
25402542
}
25412543
*this << getIDAndType(MDI->getValue()) << " on "
25422544
<< getIDAndType(MDI->getBase());

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)