]> granicus.if.org Git - clang/commitdiff
Use an unused-except-in-Debug variable.
authorMatt Beaumont-Gay <matthewbg@google.com>
Tue, 22 Feb 2011 20:00:16 +0000 (20:00 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Tue, 22 Feb 2011 20:00:16 +0000 (20:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126240 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index df92d111929da5c2793a2cef1e8b5bc6cf730b04..6d0b6d7ce201fb70e669fbb9c8de58abb7b85a59 100644 (file)
@@ -874,7 +874,7 @@ ASTContext::getTypeInfo(const Type *T) const {
   case Type::Auto: {
     const AutoType *A = cast<AutoType>(T);
     assert(A->isDeduced() && "Cannot request the size of a dependent type");
-    return getTypeInfo(cast<AutoType>(T)->getDeducedType().getTypePtr());
+    return getTypeInfo(A->getDeducedType().getTypePtr());
   }
 
   case Type::Paren: