[clang] [clang][AST] Assert that DependentNameType::Name is not null (PR #122418)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 14 12:28:25 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list