Skip to content

Commit 4d7a4b5

Browse files
authored
Merge pull request swiftlang#22477 from dcci/not_lldb_fault_anymore_maybe
[Decl] Remove a workaround introduced to appease lldb.
2 parents 60fbf61 + 8bbb26e commit 4d7a4b5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/AST/Decl.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,14 +2406,9 @@ void ValueDecl::setInterfaceType(Type type) {
24062406
assert(!type->hasTypeVariable() && "Type variable in interface type");
24072407
assert(!type->is<InOutType>() && "Interface type must be materializable");
24082408

2409-
// lldb creates global typealiases with archetypes in them.
2410-
// FIXME: Add an isDebugAlias() flag, like isDebugVar().
2411-
//
2412-
// Also, ParamDecls in closure contexts can have type variables
2409+
// ParamDecls in closure contexts can have type variables
24132410
// archetype in them during constraint generation.
2414-
if (!isa<TypeAliasDecl>(this) &&
2415-
!(isa<ParamDecl>(this) &&
2416-
isa<AbstractClosureExpr>(getDeclContext()))) {
2411+
if (!(isa<ParamDecl>(this) && isa<AbstractClosureExpr>(getDeclContext()))) {
24172412
assert(!type->hasArchetype() &&
24182413
"Archetype in interface type");
24192414
}

0 commit comments

Comments
 (0)