[cfe-commits] r104576 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp

Daniel Dunbar daniel at zuster.org
Mon May 24 17:32:58 PDT 2010


Author: ddunbar
Date: Mon May 24 19:32:58 2010
New Revision: 104576

URL: http://llvm.org/viewvc/llvm-project?rev=104576&view=rev
Log:
Simplify.

Modified:
    cfe/trunk/lib/Sema/SemaDeclCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=104576&r1=104575&r2=104576&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Mon May 24 19:32:58 2010
@@ -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;
 





More information about the cfe-commits mailing list