diff --git a/include/swift/SIL/SILType.h b/include/swift/SIL/SILType.h index f151ad217ed4d..30c37b703b993 100644 --- a/include/swift/SIL/SILType.h +++ b/include/swift/SIL/SILType.h @@ -622,10 +622,19 @@ template<> Can##ID##Type SILType::getAs() const = delete; \ template<> Can##ID##Type SILType::castTo() const = delete; \ template<> bool SILType::is() const = delete; NON_SIL_TYPE(Function) +NON_SIL_TYPE(GenericFunction) NON_SIL_TYPE(AnyFunction) NON_SIL_TYPE(LValue) +NON_SIL_TYPE(InOut) #undef NON_SIL_TYPE +#define TYPE(ID, PARENT) +#define UNCHECKED_TYPE(ID, PARENT) \ +template<> Can##ID##Type SILType::getAs() const = delete; \ +template<> Can##ID##Type SILType::castTo() const = delete; \ +template<> bool SILType::is() const = delete; +#include "swift/AST/TypeNodes.def" + inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, SILType T) { T.print(OS); return OS;