Skip to content

Commit 035e179

Browse files
authored
Merge pull request #6306 from hughbe/silgen-msvc-fixes
Fix MSVC errors compiling GenericSignature.h
2 parents 4662674 + a8a0667 commit 035e179

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

include/swift/AST/GenericSignature.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,10 @@ class alignas(1 << TypeAlignInBits) GenericSignature final
128128
void getSubstitutionMap(ArrayRef<Substitution> args,
129129
SubstitutionMap &subMap) const;
130130

131-
using LookupConformanceFn =
132-
llvm::function_ref<auto(CanType dependentType,
133-
Type conformingReplacementType,
134-
ProtocolType *conformedProtocol)
135-
-> Optional<ProtocolConformanceRef>>;
131+
using GenericFunction = auto(CanType canType, Type conformingReplacementType,
132+
ProtocolType *conformedProtocol)
133+
->Optional<ProtocolConformanceRef>;
134+
using LookupConformanceFn = llvm::function_ref<GenericFunction>;
136135

137136
/// Build an array of substitutions from an interface type substitution map,
138137
/// using the given function to look up conformances.

include/swift/AST/Type.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ struct QueryTypeSubstitutionMap {
7171
};
7272

7373
/// Function used to resolve conformances.
74-
using LookupConformanceFn
75-
= llvm::function_ref<auto(CanType dependentType,
76-
Type conformingReplacementType,
77-
ProtocolType *conformedProtocol)
78-
-> Optional<ProtocolConformanceRef>>;
74+
using GenericFunction = auto(CanType dependentType,
75+
Type conformingReplacementType,
76+
ProtocolType *conformedProtocol)
77+
->Optional<ProtocolConformanceRef>;
78+
using LookupConformanceFn = llvm::function_ref<GenericFunction>;
7979

8080
/// Functor class suitable for use as a \c LookupConformanceFn to look up a
8181
/// conformance through a module.

0 commit comments

Comments
 (0)