]> granicus.if.org Git - clang/commitdiff
Remove accidentally checked in assert.
authorVassil Vassilev <v.g.vassilev@gmail.com>
Fri, 21 Oct 2016 20:30:30 +0000 (20:30 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Fri, 21 Oct 2016 20:30:30 +0000 (20:30 +0000)
Thanks to Manman for spotting this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284877 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index c0b06336e242c6ef4faf5ae565dfe2f300172510..7f5b6d85703d122fce588fb8150cb68bc130b54d 100644 (file)
@@ -10124,9 +10124,6 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl,
     // 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.