[cfe-commits] r172700 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp

David Blaikie dblaikie at gmail.com
Wed Jan 16 21:26:21 PST 2013


Author: dblaikie
Date: Wed Jan 16 23:26:21 2013
New Revision: 172700

URL: http://llvm.org/viewvc/llvm-project?rev=172700&view=rev
Log:
Remove some unnecessary casts

Modified:
    cfe/trunk/lib/Sema/SemaDeclCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=172700&r1=172699&r2=172700&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Wed Jan 16 23:26:21 2013
@@ -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





More information about the cfe-commits mailing list