File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7497,17 +7497,17 @@ class DependentNameType : public TypeWithKeyword, public llvm::FoldingSetNode {
7497
7497
: TypeWithKeyword(Keyword, DependentName, CanonType,
7498
7498
TypeDependence::DependentInstantiation |
7499
7499
toTypeDependence (NNS->getDependence ())),
7500
- NNS(NNS), Name(Name) {}
7500
+ NNS(NNS), Name(Name) {
7501
+ assert (NNS);
7502
+ assert (Name);
7503
+ }
7501
7504
7502
7505
public:
7503
7506
// / Retrieve the qualification on this type.
7504
7507
NestedNameSpecifier *getQualifier () const { return NNS; }
7505
7508
7506
- // / Retrieve the type named by the typename specifier as an identifier.
7507
- // /
7508
- // / This routine will return a non-NULL identifier pointer when the
7509
- // / form of the original typename was terminated by an identifier,
7510
- // / e.g., "typename T::type".
7509
+ // / Retrieve the identifier that terminates this type name.
7510
+ // / For example, "type" in "typename T::type".
7511
7511
const IdentifierInfo *getIdentifier () const {
7512
7512
return Name;
7513
7513
}
You can’t perform that action at this time.
0 commit comments