diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-18 17:39:56 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-18 17:39:56 +0000 |
commit | f7faa42c6c19a1da9320cfbc759dfd3222994cc3 (patch) | |
tree | d7228bee59dc7aa116c0b619509346e91168b84f /clang/lib/Analysis/CFRefCount.cpp | |
parent | 3b2294c7e6fc0fd0e6c8fde0049d3e386f24fd08 (diff) | |
download | bcm5719-llvm-f7faa42c6c19a1da9320cfbc759dfd3222994cc3.tar.gz bcm5719-llvm-f7faa42c6c19a1da9320cfbc759dfd3222994cc3.zip |
Fix caching bug.
llvm-svn: 53759
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 27c5fe33fc4..de048eb4bea 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -265,15 +265,16 @@ public: 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 @@ RetainSummaryManager::getPersistentSummary(ArgEffects* AE, RetEffect RetEff, // 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 @@ void RetainSummaryManager::InitializeMethodSummaries() { 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")); |