]> granicus.if.org Git - clang/commitdiff
Remove dead code.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 24 Jul 2010 21:35:09 +0000 (21:35 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 24 Jul 2010 21:35:09 +0000 (21:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109358 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index 975a58ab261d234baea383c84a2a152b66239727..254f7c3b58b7e73217e5599e6ed9bb3a3991faf4 100644 (file)
@@ -5399,9 +5399,6 @@ void Sema::AddCXXDirectInitializerToDecl(DeclPtrTy Dcl,
   // The form of initialization (using parentheses or '=') is generally
   // insignificant, but does matter when the entity being initialized has a
   // class type.
-  QualType DeclInitType = VDecl->getType();
-  if (const ArrayType *Array = Context.getAsArrayType(DeclInitType))
-    DeclInitType = Context.getBaseElementType(Array);
 
   if (!VDecl->getType()->isDependentType() &&
       RequireCompleteType(VDecl->getLocation(), VDecl->getType(),