================
@@ -346,6 +351,11 @@ MultiLevelTemplateArgumentList 
Sema::getTemplateInstantiationArgs(
     CurDecl = Response::UseNextDecl(ND).NextDecl;
   }
 
+  if (!ND) {
+    assert(DC);
----------------
Fznamznon wrote:

Does this assertion makes sense? If `ND` and `DC` both were null, the first 
assertion in this function would have failed already.

https://github.com/llvm/llvm-project/pull/69244
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to