r361353 - Fixed a -Wunused-variable warning when assertions are disabled
Dmitri Gribenko via cfe-commits
cfe-commits at lists.llvm.org
Tue May 21 23:57:23 PDT 2019
Author: gribozavr
Date: Tue May 21 23:57:23 2019
New Revision: 361353
URL: http://llvm.org/viewvc/llvm-project?rev=361353&view=rev
Log:
Fixed a -Wunused-variable warning when assertions are disabled
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=361353&r1=361352&r2=361353&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Tue May 21 23:57:23 2019
@@ -5033,6 +5033,7 @@ static bool HandleUnionActiveMemberChang
break;
for (const CXXBaseSpecifier *Elt : ICE->path()) {
--PathLength;
+ (void)Elt;
assert(declaresSameEntity(Elt->getType()->getAsCXXRecordDecl(),
LHS.Designator.Entries[PathLength]
.getAsBaseOrMember().getPointer()));
More information about the cfe-commits
mailing list