summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-07-18 04:47:25 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-07-18 04:47:25 +0000
commite0eea0c6faf28d50c6e8f7ed5cf25ff0dd03f2cc (patch)
tree475eaf59c111c25c5014862a81a9a5d03980fc31 /lib/Sema/SemaInit.cpp
parent9d06d6c87a18c59527795652d7bfc19708c1af2f (diff)
Cleanup: remove essentially unused variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r--lib/Sema/SemaInit.cpp5
1 files changed, 2 insertions, 3 deletions
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<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;