forked from OSchip/llvm-project
Fixed a -Wunused-variable warning when assertions are disabled
llvm-svn: 361353
This commit is contained in:
parent
15df05152d
commit
a10fe832fd
|
@ -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()));
|
||||
|
|
Loading…
Reference in New Issue