Skip to content

Commit 2d3c2ff

Browse files
authored
Merge pull request #6297 from slavapestov/fix-nits
Fix nits
2 parents d296ea2 + abf0df3 commit 2d3c2ff

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/AST/Availability.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class AvailabilityInferenceTypeWalker : public TypeWalker {
188188
AvailabilityInferenceTypeWalker(ASTContext &AC) : AC(AC) {}
189189

190190
virtual Action walkToTypePre(Type ty) {
191-
if (auto *nominalDecl = ty.getCanonicalTypeOrNull().getAnyNominal()) {
191+
if (auto *nominalDecl = ty->getCanonicalType()->getAnyNominal()) {
192192
AvailabilityInfo.intersectWith(
193193
AvailabilityInference::availableRange(nominalDecl, AC));
194194
}

lib/SILGen/SILGenBridging.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,6 @@ static SILFunctionType *emitObjCThunkArguments(SILGenFunction &gen,
891891
Optional<ForeignErrorConvention> &foreignError) {
892892
SILDeclRef native = thunk.asForeign(false);
893893

894-
auto mod = gen.SGM.M.getSwiftModule();
895894
auto subs = gen.F.getForwardingSubstitutions();
896895

897896
auto objcInfo = gen.SGM.Types.getConstantInfo(thunk);

0 commit comments

Comments
 (0)