diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 3 |
1 files changed, 1 insertions, 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<CXXRecordDecl>(VTableUses[I].first)->getDefinition(); + CXXRecordDecl *Class = VTableUses[I].first->getDefinition(); if (!Class) continue; |