[cfe-commits] r53759 - /cfe/trunk/lib/Analysis/CFRefCount.cpp

Ted Kremenek kremenek at apple.com
Fri Jul 18 10:39:56 PDT 2008


Author: kremenek
Date: Fri Jul 18 12:39:56 2008
New Revision: 53759

URL: http://llvm.org/viewvc/llvm-project?rev=53759&view=rev
Log:
Fix caching bug.

Modified:
    cfe/trunk/lib/Analysis/CFRefCount.cpp

Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=53759&r1=53758&r2=53759&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Fri Jul 18 12:39:56 2008
@@ -265,15 +265,16 @@
   
   static void Profile(llvm::FoldingSetNodeID& ID, ArgEffects* A,
                       RetEffect RetEff, ArgEffect DefaultEff,
-                      ArgEffect ReceiverEff) {
+                      ArgEffect ReceiverEff, bool EndPath) {
     ID.AddPointer(A);
     ID.Add(RetEff);
     ID.AddInteger((unsigned) DefaultEff);
     ID.AddInteger((unsigned) ReceiverEff);
+    ID.AddInteger((unsigned) EndPath);
   }
       
   void Profile(llvm::FoldingSetNodeID& ID) const {
-    Profile(ID, Args, Ret, DefaultArgEffect, Receiver);
+    Profile(ID, Args, Ret, DefaultArgEffect, Receiver, EndPath);
   }
 };
 } // end anonymous namespace
@@ -643,7 +644,8 @@
   
   // Generate a profile for the summary.
   llvm::FoldingSetNodeID profile;
-  RetainSummary::Profile(profile, AE, RetEff, DefaultEff, ReceiverEff);
+  RetainSummary::Profile(profile, AE, RetEff, DefaultEff, ReceiverEff,
+                         isEndPath);
   
   // Look up the uniqued summary, or create one if it doesn't exist.
   void* InsertPos;  
@@ -1010,7 +1012,7 @@
     getPersistentSummary(RetEffect::MakeReceiverAlias(), SelfOwn);
 
   // Create the "initWithContentRect:styleMask:backing:defer:" selector.
-  llvm::SmallVector<IdentifierInfo*, 5> II;
+  llvm::SmallVector<IdentifierInfo*, 10> II;
   II.push_back(&Ctx.Idents.get("initWithContentRect"));
   II.push_back(&Ctx.Idents.get("styleMask"));
   II.push_back(&Ctx.Idents.get("backing"));





More information about the cfe-commits mailing list