Skip to content

Commit d1da83b

Browse files
committed
add an assertion to handle type alias resolution failure
1 parent a265118 commit d1da83b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11454,6 +11454,7 @@ bool Sema::CheckDeductionGuideDeclarator(Declarator &D, QualType &R,
1145411454
const TemplateSpecializationType *TST = RetTST.getTypePtr();
1145511455
while (TST && TST->isTypeAlias())
1145611456
TST = TST->getAliasedType()->getAs<TemplateSpecializationType>();
11457+
assert(TST && "failed to resolve type alias");
1145711458

1145811459
TemplateName SpecifiedName = TST->getTemplateName();
1145911460
bool TemplateMatches = Context.hasSameTemplateName(

0 commit comments

Comments
 (0)