From: Matt Beaumont-Gay Date: Tue, 22 Feb 2011 20:00:16 +0000 (+0000) Subject: Use an unused-except-in-Debug variable. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc856aff4428380baa9afb5577ea04f8fb6beb13;p=clang Use an unused-except-in-Debug variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126240 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index df92d11192..6d0b6d7ce2 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -874,7 +874,7 @@ ASTContext::getTypeInfo(const Type *T) const { case Type::Auto: { const AutoType *A = cast(T); assert(A->isDeduced() && "Cannot request the size of a dependent type"); - return getTypeInfo(cast(T)->getDeducedType().getTypePtr()); + return getTypeInfo(A->getDeducedType().getTypePtr()); } case Type::Paren: