SemaInit.cpp: Fix a warning with -Asserts. [-Wunused-variable]

llvm-svn: 213345
This commit is contained in:
NAKAMURA Takumi 2014-07-18 01:26:35 +00:00
parent 7e246a47f9
commit c1551a10ed
1 changed files with 1 additions and 0 deletions

View File

@ -919,6 +919,7 @@ void InitListChecker::CheckSubElementType(const InitializedEntity &Entity,
// that we've already checked once.
assert(SemaRef.Context.hasSameType(VIE->getType(), ElemType) &&
"found implicit initialization for the wrong type");
(void)VIE;
if (!VerifyOnly)
UpdateStructuredListElement(StructuredList, StructuredIndex, expr);
++Index;