File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7040,17 +7040,17 @@ class DependentNameType : public TypeWithKeyword, public llvm::FoldingSetNode {
7040
7040
: TypeWithKeyword(Keyword, DependentName, CanonType,
7041
7041
TypeDependence::DependentInstantiation |
7042
7042
toTypeDependence (NNS->getDependence ())),
7043
- NNS(NNS), Name(Name) {}
7043
+ NNS(NNS), Name(Name) {
7044
+ assert (NNS);
7045
+ assert (Name);
7046
+ }
7044
7047
7045
7048
public:
7046
7049
// / Retrieve the qualification on this type.
7047
7050
NestedNameSpecifier *getQualifier () const { return NNS; }
7048
7051
7049
- // / Retrieve the type named by the typename specifier as an identifier.
7050
- // /
7051
- // / This routine will return a non-NULL identifier pointer when the
7052
- // / form of the original typename was terminated by an identifier,
7053
- // / e.g., "typename T::type".
7052
+ // / Retrieve the identifier that terminates this type name.
7053
+ // / For example, "type" in "typename T::type".
7054
7054
const IdentifierInfo *getIdentifier () const {
7055
7055
return Name;
7056
7056
}
You can’t perform that action at this time.
0 commit comments