summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCXXCast.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-11 01:04:33 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-11 01:04:33 +0000
commit0a5a2216e2d52482d0c59220d4b85f828aeaae70 (patch)
treed513bdedd4be5debae8f27fd479e19d595ebfdef /clang/lib/Sema/SemaCXXCast.cpp
parentda4abf11bf3dbc7c9fb921cb2f67cac9022e6021 (diff)
downloadbcm5719-llvm-0a5a2216e2d52482d0c59220d4b85f828aeaae70.tar.gz
bcm5719-llvm-0a5a2216e2d52482d0c59220d4b85f828aeaae70.zip
Eliminate the ASTContext parameter from RecordDecl::getDefinition()
and CXXRecordDecl::getDefinition(); it's totally unnecessary. No functionality change. llvm-svn: 95836
Diffstat (limited to 'clang/lib/Sema/SemaCXXCast.cpp')
-rw-r--r--clang/lib/Sema/SemaCXXCast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCXXCast.cpp b/clang/lib/Sema/SemaCXXCast.cpp
index 48258ff6ad6..0097cd363c8 100644
--- a/clang/lib/Sema/SemaCXXCast.cpp
+++ b/clang/lib/Sema/SemaCXXCast.cpp
@@ -391,7 +391,7 @@ CheckDynamicCast(Sema &Self, Expr *&SrcExpr, QualType DestType,
}
// C++ 5.2.7p6: Otherwise, v shall be [polymorphic].
- const RecordDecl *SrcDecl = SrcRecord->getDecl()->getDefinition(Self.Context);
+ const RecordDecl *SrcDecl = SrcRecord->getDecl()->getDefinition();
assert(SrcDecl && "Definition missing");
if (!cast<CXXRecordDecl>(SrcDecl)->isPolymorphic()) {
Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_polymorphic)
OpenPOWER on IntegriCloud