From: Vassil Vassilev Date: Fri, 21 Oct 2016 20:30:30 +0000 (+0000) Subject: Remove accidentally checked in assert. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e88386391ce221229abd19f9c4fd624ffdd5aa88;p=clang 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 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index c0b06336e2..7f5b6d8570 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/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.