Skip to content

Commit a2cd159

Browse files
author
git apple-llvm automerger
committed
Merge commit '9ac6a55ec54f' from llvm.org/main into next
2 parents b6bc683 + 9ac6a55 commit a2cd159

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/include/clang/AST/Type.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7497,17 +7497,17 @@ class DependentNameType : public TypeWithKeyword, public llvm::FoldingSetNode {
74977497
: TypeWithKeyword(Keyword, DependentName, CanonType,
74987498
TypeDependence::DependentInstantiation |
74997499
toTypeDependence(NNS->getDependence())),
7500-
NNS(NNS), Name(Name) {}
7500+
NNS(NNS), Name(Name) {
7501+
assert(NNS);
7502+
assert(Name);
7503+
}
75017504

75027505
public:
75037506
/// Retrieve the qualification on this type.
75047507
NestedNameSpecifier *getQualifier() const { return NNS; }
75057508

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".
75117511
const IdentifierInfo *getIdentifier() const {
75127512
return Name;
75137513
}

0 commit comments

Comments
 (0)