From e669f89e613029d4e21869b90f6d3f6cd299ff2a Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 25 May 2010 00:32:58 +0000 Subject: [PATCH] Simplify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104576 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDeclCXX.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index 3be673f7f9..d2655cb625 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -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(VTableUses[I].first)->getDefinition(); + CXXRecordDecl *Class = VTableUses[I].first->getDefinition(); if (!Class) continue; -- 2.40.0