File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -570,19 +570,12 @@ clang::QualType ClangTypeConverter::visitFunctionType(FunctionType *type) {
570
570
}
571
571
572
572
clang::QualType ClangTypeConverter::visitSILFunctionType (SILFunctionType *type) {
573
- // We must've already computed it before if applicable.
574
- return clang::QualType (type->getClangFunctionType (), 0 );
573
+ llvm::report_fatal_error (" Expected only AST types but found a SIL function." );
575
574
}
576
575
577
576
clang::QualType
578
577
ClangTypeConverter::visitSILBlockStorageType (SILBlockStorageType *type) {
579
- // We'll select (void)(^)(). This isn't correct for all blocks, but block
580
- // storage type should only be converted for function signature lowering,
581
- // where the parameter types do not matter.
582
- auto &clangCtx = ClangASTContext;
583
- auto fnTy = clangCtx.getFunctionNoProtoType (clangCtx.VoidTy );
584
- auto blockTy = clangCtx.getBlockPointerType (fnTy);
585
- return clangCtx.getCanonicalType (blockTy);
578
+ llvm::report_fatal_error (" Expected only AST types but found a SIL block." );
586
579
}
587
580
588
581
clang::QualType
You can’t perform that action at this time.
0 commit comments