]> granicus.if.org Git - clang/commitdiff
Remove stale comment.
authorTed Kremenek <kremenek@apple.com>
Wed, 14 Oct 2009 23:58:34 +0000 (23:58 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 14 Oct 2009 23:58:34 +0000 (23:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84157 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index 9b6125705d9aa9a00b870e31b129a74dc1180fb6..eb1265dda7ead915109d2c4e2d6ba97fdf28cda2 100644 (file)
@@ -3232,10 +3232,8 @@ void CFRefCount::EvalReturn(ExplodedNodeSet& Dst,
           // returned object is suppose to be an Objective-C object, we have
           // a leak (as the caller expects a GC'ed object) because no
           // method should return ownership unless it returns a CF object.
-          X = X ^ RefVal::ErrorGCLeakReturned;
-
-          // Keep this false until this is properly tested.
           hasError = true;
+          X = X ^ RefVal::ErrorGCLeakReturned;
         }
         else if (!RE.isOwned()) {
           // Either we are using GC and the returned object is a CF type