[clang] [CONCEPTS]Corrected comparison of constraints with out of line CTD (PR #69244)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 17 02:12:27 PDT 2023


================
@@ -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


More information about the cfe-commits mailing list