mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Remove UnresolvedType
We have now removed all uses of this type.
This commit is contained in:
@@ -5616,17 +5616,6 @@ public:
|
||||
llvm_unreachable("should not serialize an ErrorType");
|
||||
}
|
||||
|
||||
void visitUnresolvedType(const UnresolvedType *) {
|
||||
// If for some reason we have an unresolved type while compiling with
|
||||
// errors, just serialize an ErrorType and continue.
|
||||
if (S.getASTContext().LangOpts.AllowModuleWithCompilerErrors) {
|
||||
visitErrorType(
|
||||
cast<ErrorType>(ErrorType::get(S.getASTContext()).getPointer()));
|
||||
return;
|
||||
}
|
||||
llvm_unreachable("should not serialize an UnresolvedType");
|
||||
}
|
||||
|
||||
void visitPlaceholderType(const PlaceholderType *) {
|
||||
// If for some reason we have a placeholder type while compiling with
|
||||
// errors, just serialize an ErrorType and continue.
|
||||
|
||||
Reference in New Issue
Block a user