diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-18 04:47:25 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-18 04:47:25 +0000 |
commit | c4158e862f078508a5d54e92b6a6f3081488f559 (patch) | |
tree | dd4bf96b4a9a5063d8a5b1c0dca2aff45db6067c /clang | |
parent | 3be586fec285b1d69e26ba3f3bcb206c92672a0a (diff) | |
download | llvm-c4158e862f078508a5d54e92b6a6f3081488f559.zip llvm-c4158e862f078508a5d54e92b6a6f3081488f559.tar.gz llvm-c4158e862f078508a5d54e92b6a6f3081488f559.tar.bz2 |
Cleanup: remove essentially unused variable.
llvm-svn: 213347
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<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; |