diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-01-17 05:26:21 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-01-17 05:26:21 +0000 |
commit | 72190da43924db7d0238fe5c696ecab2bb5bf196 (patch) | |
tree | 8d86be77cf692bd953b70128318be0094c09fb09 /lib/Sema/SemaDeclCXX.cpp | |
parent | 459455b9868974e2bb98032f768fe111ff376ada (diff) |
Remove some unnecessary casts
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index fd6cd9c8c4..2e73a4e9cd 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -3220,9 +3220,9 @@ static void *GetKeyForTopLevelField(FieldDecl *Field) { // For anonymous unions, use the class declaration as the key. if (const RecordType *RT = Field->getType()->getAs<RecordType>()) { if (RT->getDecl()->isAnonymousStructOrUnion()) - return static_cast<void *>(RT->getDecl()); + return RT->getDecl(); } - return static_cast<void *>(Field); + return Field; } static void *GetKeyForBase(ASTContext &Context, QualType BaseType) { @@ -3250,10 +3250,10 @@ static void *GetKeyForMember(ASTContext &Context, break; } - return static_cast<void *>(RD); + return RD; } - return static_cast<void *>(Field); + return Field; } static void |