Remove some unnecessary casts

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172700 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp
index fd6cd9c..2e73a4e 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -3220,9 +3220,9 @@
   // 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 @@
         break;
     }
       
-    return static_cast<void *>(RD);
+    return RD;
   }
 
-  return static_cast<void *>(Field);
+  return Field;
 }
 
 static void