]> granicus.if.org Git - clang/commitdiff
Remove superfluous cast.
authorRobert Wilhelm <robert.wilhelm@gmx.net>
Mon, 22 Jul 2013 05:04:01 +0000 (05:04 +0000)
committerRobert Wilhelm <robert.wilhelm@gmx.net>
Mon, 22 Jul 2013 05:04:01 +0000 (05:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186807 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index 9b85c10d594878eb2f9907876b6768b0c4ce012a..509a30209aad50d9de7e9fb1661d33f689ffaec9 100644 (file)
@@ -1490,8 +1490,7 @@ void Sema::ActOnBaseSpecifiers(Decl *ClassDecl, CXXBaseSpecifier **Bases,
     return;
 
   AdjustDeclIfTemplate(ClassDecl);
-  AttachBaseSpecifiers(cast<CXXRecordDecl>(ClassDecl),
-                       (CXXBaseSpecifier**)(Bases), NumBases);
+  AttachBaseSpecifiers(cast<CXXRecordDecl>(ClassDecl), Bases, NumBases);
 }
 
 /// \brief Determine whether the type \p Derived is a C++ class that is