]> granicus.if.org Git - clang/commitdiff
Remove dead code.
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 20 Aug 2010 23:02:01 +0000 (23:02 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 20 Aug 2010 23:02:01 +0000 (23:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111693 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index 9f3ee1e202fb73b66e3912875530a472fb78b40e..78014a781ec7efd96f4dde81ea75398037e2c7fe 100644 (file)
@@ -4269,9 +4269,7 @@ BuiltinCandidateTypeSet::AddTypesConvertedFrom(QualType Ty,
   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))