mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Now that we have simple user defined data types, remove the __builtin_else_hack type. woot.
Swift SVN r179
This commit is contained in:
@@ -49,8 +49,7 @@ ASTContext::ASTContext(llvm::SourceMgr &sourcemgr)
|
||||
SourceMgr(sourcemgr),
|
||||
TheEmptyTupleType(getTupleType(0, 0)),
|
||||
TheDependentType(new (*this) DependentType()),
|
||||
TheInt32Type(new (*this) BuiltinType(BuiltinInt32Kind)),
|
||||
TheElseHackType(new (*this) BuiltinType(BuiltinElseHackKind)) {
|
||||
TheInt32Type(new (*this) BuiltinType(BuiltinInt32Kind)) {
|
||||
}
|
||||
|
||||
ASTContext::~ASTContext() {
|
||||
@@ -91,7 +90,6 @@ Type *ASTContext::getCanonicalType(Type *T) {
|
||||
|
||||
switch (T->Kind) {
|
||||
case BuiltinInt32Kind:
|
||||
case BuiltinElseHackKind:
|
||||
case DependentTypeKind:
|
||||
case DataTypeKind:
|
||||
assert(0 && "These are always canonical");
|
||||
|
||||
Reference in New Issue
Block a user