[cfe-commits] r54529 - /cfe/trunk/include/clang/AST/DeclCXX.h
Argiris Kirtzidis
akyrtzi at gmail.com
Fri Aug 8 09:48:28 PDT 2008
Author: akirtzidis
Date: Fri Aug 8 11:48:14 2008
New Revision: 54529
URL: http://llvm.org/viewvc/llvm-project?rev=54529&view=rev
Log:
Revert my previous commit where I replaced cast<> with static_cast<> in CXXFieldDecl::getMember().
Modified:
cfe/trunk/include/clang/AST/DeclCXX.h
Modified: cfe/trunk/include/clang/AST/DeclCXX.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclCXX.h?rev=54529&r1=54528&r2=54529&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclCXX.h (original)
+++ cfe/trunk/include/clang/AST/DeclCXX.h Fri Aug 8 11:48:14 2008
@@ -53,14 +53,12 @@
SourceLocation L, IdentifierInfo *Id,
ScopedDecl *PrevDecl);
- const CXXFieldDecl *getMember(unsigned i) const {
- assert(isa<CXXFieldDecl>(RecordDecl::getMember(i)));
- return static_cast<const CXXFieldDecl*>(RecordDecl::getMember(i));
- }
- CXXFieldDecl *getMember(unsigned i) {
- assert(isa<CXXFieldDecl>(RecordDecl::getMember(i)));
- return static_cast<CXXFieldDecl*>(RecordDecl::getMember(i));
- }
+ const CXXFieldDecl *getMember(unsigned i) const {
+ return cast<const CXXFieldDecl>(RecordDecl::getMember(i));
+ }
+ CXXFieldDecl *getMember(unsigned i) {
+ return cast<CXXFieldDecl>(RecordDecl::getMember(i));
+ }
/// getMember - If the member doesn't exist, or there are no members, this
/// function will return 0;
More information about the cfe-commits
mailing list