Thanks to Manman for spotting this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284877
91177308-0d34-0410-b5e6-
96231b3b80d8
// member.
if (Var->isConstexpr() && !Var->isThisDeclarationADefinition() &&
!Var->isThisDeclarationADemotedDefinition()) {
- assert((!Var->isThisDeclarationADemotedDefinition() ||
- getLangOpts().Modules) &&
- "Demoting decls is only in the contest of modules!");
if (Var->isStaticDataMember()) {
// C++1z removes the relevant rule; the in-class declaration is always
// a definition there.