Fixed a -Wunused-variable warning when assertions are disabled

llvm-svn: 361353
This commit is contained in:
Dmitri Gribenko 2019-05-22 06:57:23 +00:00
parent 15df05152d
commit a10fe832fd
1 changed files with 1 additions and 0 deletions

View File

@ -5033,6 +5033,7 @@ static bool HandleUnionActiveMemberChange(EvalInfo &Info, const Expr *LHSExpr,
break;
for (const CXXBaseSpecifier *Elt : ICE->path()) {
--PathLength;
(void)Elt;
assert(declaresSameEntity(Elt->getType()->getAsCXXRecordDecl(),
LHS.Designator.Entries[PathLength]
.getAsBaseOrMember().getPointer()));