================
@@ -7035,17 +7035,16 @@ class DependentNameType : public TypeWithKeyword, 
public llvm::FoldingSetNode {
       : TypeWithKeyword(Keyword, DependentName, CanonType,
                         TypeDependence::DependentInstantiation |
                             toTypeDependence(NNS->getDependence())),
-        NNS(NNS), Name(Name) {}
+        NNS(NNS), Name(Name) {
+    assert(Name);
----------------
mizvekov wrote:

FWIW NNS must also be non-null, and additionally it must also be dependent.

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

Reply via email to