mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Utilize TypeReprs for type checking.
-Refactor Parser to stop creating types -Refactor TypeChecker to create types by resolving TypeReprs. -Remove "validation" bit from the type system. We don't need to "validate" every type that gets created but there's still a validation bit in TypeLoc, necessary because of generic substitutions. Swift SVN r6326
This commit is contained in:
@@ -851,5 +851,5 @@ ExprHandle *ExprHandle::get(ASTContext &Context, Expr *E) {
|
||||
}
|
||||
|
||||
void TypeLoc::setInvalidType(ASTContext &C) {
|
||||
T = ErrorType::get(C);
|
||||
TAndValidBit.setPointerAndInt(ErrorType::get(C), true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user