Ver Fonte

Remove accidentally checked in assert.

Thanks to Manman for spotting this.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284877 91177308-0d34-0410-b5e6-96231b3b80d8
Vassil Vassilev há 8 anos atrás
pai
commit
e88386391c
1 ficheiros alterados com 0 adições e 3 exclusões
  1. 0 3
      lib/Sema/SemaDecl.cpp

+ 0 - 3
lib/Sema/SemaDecl.cpp

@@ -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.