From 0a5a2216e2d52482d0c59220d4b85f828aeaae70 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 11 Feb 2010 01:04:33 +0000 Subject: Eliminate the ASTContext parameter from RecordDecl::getDefinition() and CXXRecordDecl::getDefinition(); it's totally unnecessary. No functionality change. llvm-svn: 95836 --- clang/lib/AST/Decl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/AST/Decl.cpp') diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index a23f28cb379..80c1244698f 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -1398,7 +1398,7 @@ void TagDecl::completeDefinition() { } } -TagDecl* TagDecl::getDefinition(ASTContext& C) const { +TagDecl* TagDecl::getDefinition() const { if (isDefinition()) return const_cast(this); -- cgit v1.2.3