From: Richard Smith Date: Fri, 18 Jul 2014 04:47:25 +0000 (+0000) Subject: Cleanup: remove essentially unused variable. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4158e862f078508a5d54e92b6a6f3081488f559;p=platform%2Fupstream%2Fllvm.git Cleanup: remove essentially unused variable. llvm-svn: 213347 --- diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 30471fb..7c596b6 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -914,12 +914,11 @@ void InitListChecker::CheckSubElementType(const InitializedEntity &Entity, assert(SemaRef.getLangOpts().CPlusPlus && "non-aggregate records are only possible in C++"); // C++ initialization is handled later. - } else if (auto *VIE = dyn_cast(expr)) { + } else if (isa(expr)) { // This happens during template instantiation when we see an InitListExpr // that we've already checked once. - assert(SemaRef.Context.hasSameType(VIE->getType(), ElemType) && + assert(SemaRef.Context.hasSameType(expr->getType(), ElemType) && "found implicit initialization for the wrong type"); - (void)VIE; if (!VerifyOnly) UpdateStructuredListElement(StructuredList, StructuredIndex, expr); ++Index;