@@ -189,13 +189,15 @@ namespace {
189
189
return IR;
190
190
}
191
191
192
+ ImportResult VisitType (const Type*) = delete;
193
+
192
194
#define DEPENDENT_TYPE (Class, Base ) \
193
195
ImportResult Visit##Class##Type(const clang::Class##Type *) { \
194
196
llvm_unreachable (" Dependent types cannot be converted" ); \
195
197
}
196
198
#define TYPE (Class, Base )
197
199
#include " clang/AST/TypeNodes.def"
198
-
200
+
199
201
// Given a loaded type like CInt, look through the type alias sugar that the
200
202
// stdlib uses to show the underlying type. We want to import the signature
201
203
// of the exit(3) libc function as "func exit(Int32)", not as
@@ -334,6 +336,11 @@ namespace {
334
336
llvm_unreachable (" Invalid BuiltinType." );
335
337
}
336
338
339
+ ImportResult VisitPipeType (const clang::PipeType *) {
340
+ // OpenCL types are not supported in Swift.
341
+ return Type ();
342
+ }
343
+
337
344
ImportResult VisitComplexType (const clang::ComplexType *type) {
338
345
// FIXME: Implement once Complex is in the library.
339
346
return Type ();
@@ -795,12 +802,11 @@ namespace {
795
802
SUGAR_TYPE (SubstTemplateTypeParm)
796
803
SUGAR_TYPE (TemplateSpecialization)
797
804
SUGAR_TYPE (Auto)
805
+ SUGAR_TYPE (DeducedTemplateSpecialization)
798
806
SUGAR_TYPE (Adjusted)
799
807
SUGAR_TYPE (PackExpansion)
800
-
801
- ImportResult VisitAttributedType (const clang::AttributedType *type) {
802
- return Visit (type->desugar ());
803
- }
808
+ SUGAR_TYPE (Attributed)
809
+ SUGAR_TYPE (MacroQualified)
804
810
805
811
ImportResult VisitDecayedType (const clang::DecayedType *type) {
806
812
clang::ASTContext &clangCtx = Impl.getClangASTContext ();
0 commit comments