[cfe-commits] r111693 - /cfe/trunk/lib/Sema/SemaOverload.cpp

Fariborz Jahanian fjahanian at apple.com
Fri Aug 20 16:02:01 PDT 2010


Author: fjahanian
Date: Fri Aug 20 18:02:01 2010
New Revision: 111693

URL: http://llvm.org/viewvc/llvm-project?rev=111693&view=rev
Log:
Remove dead code.

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

Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=111693&r1=111692&r2=111693&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Fri Aug 20 18:02:01 2010
@@ -4269,9 +4269,7 @@
   if (Ty->isArrayType())
     Ty = SemaRef.Context.getArrayDecayedType(Ty);
 
-  if (const PointerType *PointerTy = Ty->getAs<PointerType>()) {
-    QualType PointeeTy = PointerTy->getPointeeType();
-
+  if (Ty->getAs<PointerType>()) {
     // Insert our type, and its more-qualified variants, into the set
     // of types.
     if (!AddPointerWithMoreQualifiedTypeVariants(Ty, VisibleQuals))





More information about the cfe-commits mailing list