]> granicus.if.org Git - clang/commitdiff
Simplify.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 25 May 2010 00:32:58 +0000 (00:32 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 25 May 2010 00:32:58 +0000 (00:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104576 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index 3be673f7f9efca2951cd69084d922fdd9a5d79ef..d2655cb6256e61abbf6400a19e86b50ff5546656 100644 (file)
@@ -6119,8 +6119,7 @@ bool Sema::DefineUsedVTables() {
   // time through the loop and prefer indices (with are stable) to
   // iterators (which are not).
   for (unsigned I = 0; I != VTableUses.size(); ++I) {
-    CXXRecordDecl *Class
-      = cast_or_null<CXXRecordDecl>(VTableUses[I].first)->getDefinition();
+    CXXRecordDecl *Class = VTableUses[I].first->getDefinition();
     if (!Class)
       continue;