Simplify.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104576 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp
index 3be673f..d2655cb 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -6119,8 +6119,7 @@
   // 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;