Fix unused variable warnings in -asserts build

llvm-svn: 173996
This commit is contained in:
Matt Beaumont-Gay 2013-01-31 00:08:03 +00:00
parent 6a61fccb96
commit efc270d5c6
1 changed files with 2 additions and 2 deletions

View File

@ -1677,15 +1677,15 @@ Sema::ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS, Declarator &D,
unsigned DiagID;
bool Failed = D.getMutableDeclSpec().SetTypeQual(DeclSpec::TQ_const, ConstexprLoc,
PrevSpec, DiagID, getLangOpts());
(void)Failed;
assert(!Failed && "Making a constexpr member const shouldn't fail");
} else {
B << 1;
const char *PrevSpec;
unsigned DiagID;
DeclSpec::SCS PrevSCS = DS.getStorageClassSpec();
if (D.getMutableDeclSpec().SetStorageClassSpec(
*this, DeclSpec::SCS_static, ConstexprLoc, PrevSpec, DiagID)) {
assert(PrevSCS == DeclSpec::SCS_mutable &&
assert(DS.getStorageClassSpec() == DeclSpec::SCS_mutable &&
"This is the only DeclSpec that should fail to be applied");
B << 1;
} else {