From e88386391ce221229abd19f9c4fd624ffdd5aa88 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 21 Oct 2016 20:30:30 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaDecl.cpp | 3 --- 1 file changed, 3 deletions(-) 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. -- 2.50.1