We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 839e8ec commit 4597cc3Copy full SHA for 4597cc3
lib/AST/Decl.cpp
@@ -5423,8 +5423,8 @@ Type TypeAliasDecl::getUnderlyingType() const {
5423
void TypeAliasDecl::setUnderlyingType(Type underlying) {
5424
// lldb creates global typealiases containing archetypes
5425
// sometimes...
5426
- if (underlying->hasArchetype() && isGenericContext())
5427
- underlying = underlying->mapTypeOutOfContext();
+ assert(!underlying->hasArchetype() || !isGenericContext());
+
5428
getASTContext().evaluator.cacheOutput(
5429
StructuralTypeRequest{const_cast<TypeAliasDecl *>(this)},
5430
std::move(underlying));
0 commit comments