aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-25 00:32:58 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-25 00:32:58 +0000
commite669f89e613029d4e21869b90f6d3f6cd299ff2a (patch)
tree25fc319195933bf88d25f05c4490a0576a840136
parent2472882de709cc6096f7113ba0f5f1eebe6cebd2 (diff)
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104576 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaDeclCXX.cpp3
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;