]> granicus.if.org Git - clang/commitdiff
retain/release checker: Indicate whether a tracked object is a Core Foundation or...
authorTed Kremenek <kremenek@apple.com>
Wed, 28 Jan 2009 06:06:36 +0000 (06:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 28 Jan 2009 06:06:36 +0000 (06:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63186 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index bd11c3a0b2721c26b9231792f29ea63a0b068494..bd5e3b4d53728405972203fc37f64cc62cb8dae4 100644 (file)
@@ -2348,7 +2348,13 @@ PathDiagnosticPiece* CFRefReport::VisitNode(const ExplodedNode<GRState>* N,
       os << "Method";
     }
     
-    os << " returns an object with a ";
+    if (CurrV.getObjKind() == RetEffect::CF) {
+      os << " returns a Core Foundation object with a ";
+    }
+    else {
+      assert (CurrV.getObjKind() == RetEffect::ObjC);
+      os << " returns an Objective-C object with a ";
+    }
     
     if (CurrV.isOwned())
         os << "+1 retain count (owning reference).";