commit | 0a5a2216e2d52482d0c59220d4b85f828aeaae70 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Feb 11 01:04:33 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Feb 11 01:04:33 2010 +0000 |
tree | d513bdedd4be5debae8f27fd479e19d595ebfdef | |
parent | da4abf11bf3dbc7c9fb921cb2f67cac9022e6021 [diff] [blame] |
Eliminate the ASTContext parameter from RecordDecl::getDefinition() and CXXRecordDecl::getDefinition(); it's totally unnecessary. No functionality change. llvm-svn: 95836
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index a23f28c..80c1244 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp
@@ -1398,7 +1398,7 @@ } } -TagDecl* TagDecl::getDefinition(ASTContext& C) const { +TagDecl* TagDecl::getDefinition() const { if (isDefinition()) return const_cast<TagDecl *>(this);