Remove unnecessary ASTContext* argument from isRefType().


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94665 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Checker/CFRefCount.cpp b/lib/Checker/CFRefCount.cpp
index 45fc94b..cb59b5f 100644
--- a/lib/Checker/CFRefCount.cpp
+++ b/lib/Checker/CFRefCount.cpp
@@ -78,7 +78,7 @@
 //===----------------------------------------------------------------------===//
 
 static bool isRefType(QualType RetTy, const char* prefix,
-                      ASTContext* Ctx = 0, const char* name = 0) {
+                      const char* name = 0) {
 
   // Recursively walk the typedef stack, allowing typedefs of reference types.
   while (TypedefType* TD = dyn_cast<TypedefType>(RetTy.getTypePtr())) {
@@ -89,12 +89,12 @@
     RetTy = TD->getDecl()->getUnderlyingType();
   }
 
-  if (!Ctx || !name)
+  if (!name)
     return false;
 
   // Is the type void*?
   const PointerType* PT = RetTy->getAs<PointerType>();
-  if (!(PT->getPointeeType().getUnqualifiedType() == Ctx->VoidTy))
+  if (!(PT->getPointeeType().getUnqualifiedType()->isVoidType()))
     return false;
 
   // Does the name start with the prefix?
@@ -1192,7 +1192,7 @@
 
     if (RetTy->isPointerType()) {
       // For CoreFoundation ('CF') types.
-      if (isRefType(RetTy, "CF", &Ctx, FName)) {
+      if (isRefType(RetTy, "CF", FName)) {
         if (isRetain(FD, FName))
           S = getUnarySummary(FT, cfretain);
         else if (strstr(FName, "MakeCollectable"))
@@ -1204,7 +1204,7 @@
       }
 
       // For CoreGraphics ('CG') types.
-      if (isRefType(RetTy, "CG", &Ctx, FName)) {
+      if (isRefType(RetTy, "CG", FName)) {
         if (isRetain(FD, FName))
           S = getUnarySummary(FT, cfretain);
         else