Skip to content

Commit 1ac5c39

Browse files
committed
[ClangImporter] Use existential Any instead of the constraint when importing
dependent member types.
1 parent ac36e2b commit 1ac5c39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ImportType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ namespace {
229229

230230
// TODO: Add support for dependent types (SR-13809).
231231
#define DEPENDENT_TYPE(Class, Base) \
232-
ImportResult Visit##Class##Type(const clang::Class##Type *) { return Impl.SwiftContext.TheAnyType; }
232+
ImportResult Visit##Class##Type(const clang::Class##Type *) { return Impl.SwiftContext.getAnyExistentialType(); }
233233
#define TYPE(Class, Base)
234234
#include "clang/AST/TypeNodes.inc"
235235

0 commit comments

Comments
 (0)