Remove some unnecessary casts

llvm-svn: 172700
This commit is contained in:
David Blaikie 2013-01-17 05:26:21 +00:00
parent 4c7765f166
commit 3ae79d9b8b
1 changed files with 4 additions and 4 deletions

View File

@ -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