Cleanup: remove essentially unused variable.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 18 Jul 2014 04:47:25 +0000 (04:47 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 18 Jul 2014 04:47:25 +0000 (04:47 +0000)
llvm-svn: 213347

clang/lib/Sema/SemaInit.cpp

index 30471fb..7c596b6 100644 (file)
@@ -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<ImplicitValueInitExpr>(expr)) {
+  } else if (isa<ImplicitValueInitExpr>(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;