r284877 - Remove accidentally checked in assert.

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 21 13:30:30 PDT 2016


Author: vvassilev
Date: Fri Oct 21 15:30:30 2016
New Revision: 284877

URL: http://llvm.org/viewvc/llvm-project?rev=284877&view=rev
Log:
Remove accidentally checked in assert.

Thanks to Manman for spotting this.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=284877&r1=284876&r2=284877&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Oct 21 15:30:30 2016
@@ -10124,9 +10124,6 @@ void Sema::ActOnUninitializedDecl(Decl *
     // 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.




More information about the cfe-commits mailing list