mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Simplify handling of ErrorType
The typechecker is not creating (LValueType (ErrorType)) anymore. Swift SVN r7703
This commit is contained in:
@@ -1000,6 +1000,9 @@ ProtocolType::ProtocolType(ProtocolDecl *TheDecl, const ASTContext &Ctx)
|
||||
/*HasTypeVariable=*/false) { }
|
||||
|
||||
LValueType *LValueType::get(Type objectTy, Qual quals, const ASTContext &C) {
|
||||
assert(!objectTy->is<ErrorType>() &&
|
||||
"can not have ErrorType wrapped inside LValueType");
|
||||
|
||||
bool hasTypeVariable = objectTy->hasTypeVariable();
|
||||
auto arena = getArena(hasTypeVariable);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user