[AST] Remove UnresolvedType

We have now removed all uses of this type.
This commit is contained in:
Hamish Knight
2025-10-01 22:30:46 +01:00
parent 5171b84dba
commit 954b08cae5
20 changed files with 26 additions and 99 deletions

View File

@@ -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.