r213347 - Cleanup: remove essentially unused variable.
Richard Smith
richard-llvm at metafoo.co.uk
Thu Jul 17 21:47:26 PDT 2014
Author: rsmith
Date: Thu Jul 17 23:47:25 2014
New Revision: 213347
URL: http://llvm.org/viewvc/llvm-project?rev=213347&view=rev
Log:
Cleanup: remove essentially unused variable.
Modified:
cfe/trunk/lib/Sema/SemaInit.cpp
Modified: cfe/trunk/lib/Sema/SemaInit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInit.cpp?rev=213347&r1=213346&r2=213347&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaInit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInit.cpp Thu Jul 17 23:47:25 2014
@@ -914,12 +914,11 @@ void InitListChecker::CheckSubElementTyp
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;
More information about the cfe-commits
mailing list