From: Richard Smith Date: Fri, 18 Jul 2014 04:47:25 +0000 (+0000) Subject: Cleanup: remove essentially unused variable. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0eea0c6faf28d50c6e8f7ed5cf25ff0dd03f2cc;p=clang Cleanup: remove essentially unused variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213347 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 30471fbc9a..7c596b673b 100644 --- a/lib/Sema/SemaInit.cpp +++ b/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;