summaryrefslogtreecommitdiff
path: root/lib/Analysis/AliasSetTracker.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-25 18:32:01 +0000
committerChris Lattner <sabre@nondot.org>2004-07-25 18:32:01 +0000
commit34a10057376a3389aaeb356ce4e6b72fa1a232a1 (patch)
tree354618619710fe3c639c1f0625d1823bd620c13a /lib/Analysis/AliasSetTracker.cpp
parentc5b27621e0a1589098d2832b1f8a788093f3fb64 (diff)
downloadllvm-34a10057376a3389aaeb356ce4e6b72fa1a232a1.tar.gz
llvm-34a10057376a3389aaeb356ce4e6b72fa1a232a1.tar.bz2
llvm-34a10057376a3389aaeb356ce4e6b72fa1a232a1.tar.xz
Fix a latent bug in the AliasSetTracker that was exposed by the FreeInst additions and broke a bunch of programs last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AliasSetTracker.cpp')
-rw-r--r--lib/Analysis/AliasSetTracker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp
index 22396b5d87..f11159ef9e 100644
--- a/lib/Analysis/AliasSetTracker.cpp
+++ b/lib/Analysis/AliasSetTracker.cpp
@@ -198,7 +198,8 @@ AliasSet &AliasSetTracker::getAliasSetForPointer(Value *Pointer, unsigned Size,
AliasSet::HashNodePair &Entry = getEntryFor(Pointer);
// Check to see if the pointer is already known...
- if (Entry.second.hasAliasSet() && Size <= Entry.second.getSize()) {
+ if (Entry.second.hasAliasSet()) {
+ Entry.second.updateSize(Size);
// Return the set!
return *Entry.second.getAliasSet(*this)->getForwardedTarget(*this);
} else if (AliasSet *AS = findAliasSetForPointer(Pointer, Size)) {