================
@@ -351,11 +353,13 @@ transformTemplateParam(Sema &SemaRef, DeclContext *DC,
TypeSourceInfo *NewTSI =
SemaRef.SubstType(TTP->getExpansionTypeSourceInfo(I), Args,
TTP->getLocation(), TTP->getDeclName());
- assert(NewTSI);
+ if (!NewTSI)
+ return nullptr;
QualType NewT =
SemaRef.CheckNonTypeTemplateParameterType(NewTSI,
TTP->getLocation());
- assert(!NewT.isNull());
+ if (NewT.isNull())
+ return nullptr;
----------------
bassiounix wrote:
These assertions causes a compiler crash on valid code, go see the related
issue and commit I made to handle this case.
And if you have any questions related to that I'm more than happy to answer
them =)
https://github.com/llvm/llvm-project/pull/193056
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits