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 @@ -7035,17 +7035,17 @@ class DependentNameType : public TypeWithKeyword, public llvm::FoldingSetNode {
7035
7035
: TypeWithKeyword(Keyword, DependentName, CanonType,
7036
7036
TypeDependence::DependentInstantiation |
7037
7037
toTypeDependence (NNS->getDependence ())),
7038
- NNS(NNS), Name(Name) {}
7038
+ NNS(NNS), Name(Name) {
7039
+ assert (NNS);
7040
+ assert (Name);
7041
+ }
7039
7042
7040
7043
public:
7041
7044
// / Retrieve the qualification on this type.
7042
7045
NestedNameSpecifier *getQualifier () const { return NNS; }
7043
7046
7044
- // / Retrieve the type named by the typename specifier as an identifier.
7045
- // /
7046
- // / This routine will return a non-NULL identifier pointer when the
7047
- // / form of the original typename was terminated by an identifier,
7048
- // / e.g., "typename T::type".
7047
+ // / Retrieve the identifier that terminates this type name.
7048
+ // / For example, "type" in "typename T::type".
7049
7049
const IdentifierInfo *getIdentifier () const {
7050
7050
return Name;
7051
7051
}
You can’t perform that action at this time.
0 commit comments